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
Project ID:
N/A
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
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
Thanks, what do you mean by "profiting"?
side note: the react frontend would be better served on something like vercel or netlify
did this "someone" pay you to create the site?
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?
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
Thanks for your time. I appreciate
no problem!
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
show me some errors please
(in deploy logs)
there's no error
send me your repo for the strapi app please
Sure, let me make it public
#🛂|readme #5
Hmm, fine
GitHub
photography-website/backend at main · eneadriancatalin/photography-...
Reactjs + GraphQL + Strapi. Contribute to eneadriancatalin/photography-website development by creating an account on GitHub.
have you set all the environment variables strapi needs to run in your service variables?
I think that's the problem :)) no i didn't. By variables do you mean to set everything i have in env file right?
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
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?
you need to go generate a domain in the service settings
Oh thanks 🙂