R
Railway

✋|help

Strapi app deploy

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

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
Deployment removal failsCall to `https://backboard.railway.app/graphql/internal?q=deploymentRemove` fails, it never returns Container Start Failure! "docker": executable file not found in $PATH: unknownTried to add Docker? but got error Here full log: ```fix Sticky cache enabled ======================Prod + Dev (PR) EnvironmentsHi there, I would like to understand how to achieve the following workflow. Production Env: OnlyIs SQL supposed to use this much memory?Hey I am using a mysql db and the memory usage is 500mb? I barely have this in my db.. Is it supposeLimit resources in developer planI created 2 services (postgres and api) when I was testing in the Trial Plan. Now I upgraded my accHow do I delete JUST the service, not my database?rust build faillingseems cant connect to crate.io and rust.lang.orgHelp running flask appThis is my first time using flask so bear with me... here is my app.py code ``` import mysql.connecrailway run 🚨 Not authorized! but can't login``` ❯ yarn dx yarn run v1.22.19 $ railway run --service=app --environment=dev-$(whoami) run-p dx:* -Get an error when uploading a large file through my app: rror: abortedat connResetException```Error: aborted at connResetException (node:internal/errors:711:14) at abortIncoming (node:_http_sHow to connect to another instance without link a public domainI Want to connect with the app "browserless" but I don't want to expose this app for internet. I onlhttpOnly cookies not being set in production using koaHi, I'm trying to set httponly cookies in my koajs app but to no avail I have a custom domain in raSetting up MinIO serviceI set up a docker-orchestrated MinIO service locally. Given there is no service template available fMultiple services on a single domainHi! I have 3 services: API (Backend), Landing that uses this API (Frontend) and a Documentation for Deploy from GitHub Repo exits without reasonThis is for a Flask app, but I could see how it could get confused. What/why?Postgresql paused after month limit restoreHi, it´s supposed that datatabases should be restored after month limit, but my databases are still Card declinedYou have an unpaid invoice. Click here to pay your invoice in order to avoid disconnection of servicLong Running ProcessI have a process that takes a little over 40 minutes to complete and have it running once a day usinPostgres using too much memoryI am being overcharged due to my postgres instance, however I cannot restart it to free the memory. Can’t find tables after loading them in from local .sql file using command lineHello, not sure if this isn’t a common pattern(I may just end up using a Docker container for this).