Easily configure a performant, secure, and stable NGINX server.Learn More
Setup multiple environment with Strapi image
I’m a student trying to learn all those DevOps things and Digital Ocean.
I created a new Droplet using the OneClick strapi button available on the Marketplace of DO.
On that OneClick deploy documentation they are telling us that we can create multiple environment thanks to PM2. (https://strapi.io/documentation/developer-docs/latest/setup-deployment-guides/installation/digitalocean-one-click.html)
So here’s what I did :
I did a cp -r of my strapi-development directory and named the new one strapi-production, I created a new process of that Strapi with PM2 and changed it’s port from 1377 to 3000.
Everything is running fine (without errors at least) but I don’t know how I’m supposed to access my strapi-production now. When I go to the IP of my Droplet I can only see the first strapi that was configured (so strapi-development).
How am I supposed to access to my new one? Should I modify the /etc/nginx/conf.d/upstream.conf file ? Do I need a subdomain for my development one?
I’m taking all the help I can have, even best practices etc as I’m learning the DevOps side.
Have a nice day