#Strapi - How to separate Environment?

2 messages · Page 1 of 1 (latest)

unique thunder
#

Hi, I'm using Strapi Template from Railway to deploy servers (with Postgresql).

Because Strapi only allows update Content-Type Builder in Development mode, so I create one Development with NODE_ENV=development in Railway, but I find that the Development server is still running in Production mode, because I have to use "npm run develop" to achieve that.

May I know how to use "npm run develop" in Development but use "npm run start" in Production in Railway?

coarse bison
#

you can use the NIXPACKS_START_CMD