Is there documentation on how to deploy and setup strapi with a VPS with Ubuntu 20.04?

  1. Put your project in git

  2. On VPS install:

  3. Clone your repo to vps

  4. Run yarn install --production=true inside the project

  5. Build the project with NODE_ENV=production yarn build

  6. Run it with pm2.

  7. Configure nginx to proxy requests all requests from 80/433 to 1337(or what port you defined in strapi envs)

Done.

Also, take a look at this article, it’s pretty similar to strapi’s deployment.

4 Likes