Setup multiple environment with Strapi image

Hi !

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. (

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

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer