Strapi app deploy

Hello guys, i did a website for someone with React and Strapi+GraphQL. Now i have to make it live but i'm a beginner and i have some questions: 1. In my pc i have Strapi in a folder and React in another folder, will be possible to make it run both on Railway? 2. If i'll buy a developer plan will be enough to run my website? It's kinda small, up to 40 pages, ~500 images in strapi 3. I can use Railway as a hosting service? I mean if i can connect my domain to the railway deployment and make it run. Thanks a lot for your time
23 Replies
Percy
Percy16mo ago
Project ID: N/A
Percy
Percy16mo ago
Yes, it is possible to make it run both on Railway. The Teams plan would be sufficient to run your website. Yes, you can use Railway as a hosting service and connect your domain to the Railway deployment.
⚠️ experimental feature
Brody
Brody16mo ago
1. yes 2. dev plan would have enough compute but since you are profiting from this site running on railway you want the teams plan 3. yes
Ene "Splash" Adrian
Thanks, what do you mean by "profiting"?
Brody
Brody16mo ago
side note: the react frontend would be better served on something like vercel or netlify did this "someone" pay you to create the site?
Ene "Splash" Adrian
Not really, I made it cause it's the brother of my friend and I wanted to get experience So i should deploy frontend on vercel/netlify and strapi on railway?
Brody
Brody16mo ago
okay then stick with the dev plan for now, you can always upgrade later if a team member thinks you need to yes that would be the ideal setup
Ene "Splash" Adrian
Thanks for your time. I appreciate
Brody
Brody16mo ago
no problem!
Ene "Splash" Adrian
I'm trying to deploy it, it deploy perfectly with an "active" status but no link and after 1 minute it change to "Crashed" but there's no error
Brody
Brody16mo ago
show me some errors please (in deploy logs)
Ene "Splash" Adrian
there's no error
Brody
Brody16mo ago
send me your repo for the strapi app please
Ene "Splash" Adrian
Sure, let me make it public
Brody
Brody16mo ago
#🛂|readme #5
Ene "Splash" Adrian
Hmm, fine
Ene "Splash" Adrian
GitHub
photography-website/backend at main · eneadriancatalin/photography-...
Reactjs + GraphQL + Strapi. Contribute to eneadriancatalin/photography-website development by creating an account on GitHub.
Brody
Brody16mo ago
have you set all the environment variables strapi needs to run in your service variables?
Ene "Splash" Adrian
I think that's the problem :)) no i didn't. By variables do you mean to set everything i have in env file right?
Brody
Brody16mo ago
no dont put secrets into a .env file, never store production secrets in a .env file, store them in the service variables https://docs.railway.app/develop/variables
Ene "Splash" Adrian
Thanks for your time Brody. It worked someone, now i have to figure it out why it is running on 0.0.0.0:5534. Do you have any idea where i should edit to make it fully work?
Brody
Brody16mo ago
you need to go generate a domain in the service settings
Ene "Splash" Adrian
Oh thanks 🙂