2 years ago
So i have an app on Node.js with express server and stuff, MongoDB, Bunny CDN.
I want to deploy it to Railway.
I want to know how's it done. Can i deploy my app using same dockerfile with Railway CLI ? or i need to setup Prisma for the todos and … i don't know what then yet..
In other words my question is: what's the plan when i have a ready to go app on my laptop and i just want it up an running in the clouds?
39 Replies
2 years ago
if you have an app in a github repo with a dockerfile that works on fly, it should by all means work on railway without issue
2 years ago
you would of course need to copy your mongo data from from to railway though
2 years ago
n/a
2 years ago
project ids are really only needed if theres an issue with the platform
no github repo i have. can make.
i have to migrate DB ? can't keep my routes and logic? have to turn to Prisma in order to?
2 years ago
then you can use the cli with
railway upthe same as you do with fly and their cliwell i assume you want to run mongo on railway too, so yeah you would need bring your data over, unless im wrong and you use atlas?
so when i deloy to Fly i use powershell and fom project folder pun 'fly deploy' . Is it how it's done with Railway cli or is it anouter way
2 years ago
fly deploy -> railway up
2 years ago
same thing
i meant i work with remote db at mongo.* not my deployment . just http routes.
2 years ago
oh so you use mongo atlas?
i guess so : ) i just set it up and it works.
where can i get the client?
that github repo in the last messages in | cli chat ?
2 years ago
coming to railway, you will need to know such things as where your database is hosted
2 years ago
all works. my app is up!
thanks for support. i really needed it after a bunch of unsuccessful battles with Fly.
cheers
2 years ago
happy to help
i have one other question then: )
i'd like to know how to make the cli to patch the image instead of uploading the whole thing over again. by default it seems to send it whole.
2nd time the build was 4 times faster but uploading was same as the first. is there a tweak to tell it to upload only modified layers.
2 years ago
your project will always be uploaded in full, and railway already does layer caching
2 years ago
indeed!
omg. filter for logs! i'm crying
it's not just good. it's got easter eggs here and there!
2 years ago
check out this page -
2 years ago
you can only use CNAMEs as railway does not provide static IPs yet
ah i see. i got that issue with "redirected too many times" . figuring it out. any clue?
2 years ago
yeah i read this. but didn't find where to set up the ssl thing. i get it it's at Railway side huh?
2 years ago
that's in cloudflare
2 years ago
I'm sorry I don't know what that means
successfullyy happy migrated!
https://readway.app/
2 years ago
happy to hear that!
2 years ago
happy to help!