Deploy Strapi Development mode

Deployed Strapi in Production Environment but I am not able to figure out how to do so in Development Enviroment. Please help.
30 Replies
Percy
Percy17mo ago
Please provide your project ID or reply with N/A. Thread will automatically be closed if no reply is received within 10 minutes. You can copy your project's id by pressing Ctrl/Cmd + K -> Copy Project ID.
Brody
Brody17mo ago
you run strapi in development mode locally
majid1983
majid198317mo ago
ok but how can get the local one to be deployed on Railway.app? 4b76388a-3a11-4a26-aae5-1a4efb7a154d Is this my project ID? It says Service ID though
Brody
Brody17mo ago
well after you are done doing whatever with strapi locally, you push your changes to your github repo, and then railway will build and run it in production mode
majid1983
majid198317mo ago
Okay... Thank you I will try that, thank you.
Brody
Brody17mo ago
no problemo
majid1983
majid198317mo ago
Actually, I tried but failed. I will try again.
Brody
Brody17mo ago
what errors did it fail with
majid1983
majid198317mo ago
I am trying again, I didn't note it down
majid1983
majid198317mo ago
Brody
Brody17mo ago
your database.js file may be incorrect, you can reference this database.js from the railway provided strapi template https://github.com/railwayapp-templates/strapi/blob/main/config/database.js
majid1983
majid198317mo ago
Please help
Brody
Brody17mo ago
majid1983
majid198317mo ago
Can I remove the mysql objects from there? I don't know how they are there.
Brody
Brody17mo ago
sure, use the link i sent as a reference
majid1983
majid198317mo ago
Thank you It is coming from Strapi default installation If I remove that code and use the given code then it is not working
Brody
Brody17mo ago
how about start with the railway strapi template
majid1983
majid198317mo ago
I can do that, please suggest me how to proceed How can I get the deployed one on local machine?
Brody
Brody17mo ago
you clone the repo to your computer https://railway.app/template/strapi but first deploy it from the template
majid1983
majid198317mo ago
Thank you, I am trying It is deployed successfully
Brody
Brody17mo ago
awsome
majid1983
majid198317mo ago
I have cloned the repo as well but it is not running locally
majid1983
majid198317mo ago
Brody
Brody17mo ago
you need to install the dependencies you would also need to use the railway cli railway run npm run develop
majid1983
majid198317mo ago
awesome! it is working now Thank you!!!
Brody
Brody17mo ago
no problem!
majid1983
majid198317mo ago
Would you please suggest me the best way to deploy Remix? I have deployed Strapi CMS successfully with your help and enjoying it, thank you so much. I am learning Remix now and want to use Railway as the server and at the moment I don't know the best approach. When installing Remix it asks to select the server and I want to use Railway.app there and I don't see any option for that. Please help.
Brody
Brody17mo ago
railway is not geared towards frontend hosting, so while you could still host remix on railway, it would be a better idea to host it on one of the options that it gave you but if you insist, you can just the remix template from railway
majid1983
majid198317mo ago
Thank you.
Want results from more Discord servers?
Add your server