tqw4gsargars
Strapi production environment
Hi guys,
I'm using railway to deploy Strapi, I used the 1-click template provided on Railway. I want to be sure I'm doing things correctly and I find it quite confusing to understand whether I'm using development or production mode.
So I run "railway run yarn run develop" locally, then access Strapi through the tcp proxy at http://127.0.0.1:1337/admin. That's where I'm supposed to do all my changes, and it's in development mode. Then I have to push my changes with the github repo, to the main branch, and railway takes care of updating the production mode. Is that right? I see a branch "dependabot/npm_and_yarn/strapi-xxx" that gets updated automatically when I push to main.
But then why do I only see a development config in /config in my repo? There is no /config/env/production, only /config/env/development.
Could someone enlighten me, and is there a place where al this dev/prod micmac and setup is explained clearly?
8 replies
Strapi production environment
Hi guys,
I'm using railway to deploy Strapi, I used the 1-click template provided on Railway. I want to be sure I'm doing things correctly and I find it quite confusing to understand whether I'm using development or production mode.
So I run "railway run yarn run develop" locally, then access Strapi through the tcp proxy at http://127.0.0.1:1337/admin. That's where I'm supposed to do all my changes, and it's in development mode. Then I have to push my changes with the github repo, to the main branch, and railway takes care of updating the production mode. Is that right? I see a branch "dependabot/npm_and_yarn/strapi-xxx" that gets updated automatically when I push to main.
But then why do I only see a development config in /config in my repo? There is no /config/env/production, only /config/env/development.
Could someone enlighten me, and is there a place where al this dev/prod micmac and setup is explained clearly?
Thanks a lot!
3 replies