Demo project to this blog post to run a strapi application on a plesk vserver as nodejs application.
- clone repository
- copy
.env.exampleto.env - add
DATABASE_CONNECTION_NAME=sqlite - add JWT secrets by running this node command: node -e "console.log(require('crypto').randomBytes(64).toString('base64'))"
- clone repository
- copy
.env.exampleto.env - add
DATABASE_CONNECTION_NAME=mysql - provide values for other
DATABASE_*fields (NAME, USERNAME, PASSWORD, HOST, PORT) - add JWT secrets by running this node command: node -e "console.log(require('crypto').randomBytes(64).toString('base64'))"
Provide two different jwt secret values in your .env file.
Create JWT_SECRET and ADMIN_JWT_SECRET value with this command:
node -e "console.log(require('crypto').randomBytes(64).toString('base64'))"