Migrating from Fly.io
Anonymous
TRIALOP

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


Anonymous
TRIALOP

2 years ago

ad08a77d-aad2-49a5-a577-35ef1db977ff


Anonymous
TRIALOP

2 years ago

supposed to be proj id


2 years ago

project ids are really only needed if theres an issue with the platform


Anonymous
TRIALOP

2 years ago

  1. no github repo i have. can make.

  2. i have to migrate DB ? can't keep my routes and logic? have to turn to Prisma in order to?


2 years ago

  1. then you can use the cli with railway up the same as you do with fly and their cli

  2. well 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?


Anonymous
TRIALOP

2 years ago

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


Anonymous
TRIALOP

2 years ago

i meant i work with remote db at mongo.* not my deployment . just http routes.


2 years ago

oh so you use mongo atlas?


Anonymous
TRIALOP

2 years ago

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 ?


Anonymous
TRIALOP

2 years ago

i found it.
thanks for help 🖐️


2 years ago

coming to railway, you will need to know such things as where your database is hosted


2 years ago


Anonymous
TRIALOP

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


Anonymous
TRIALOP

2 years ago

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


Anonymous
TRIALOP

2 years ago

ok. got it.
i like it logs to powershell. very handy!


2 years ago

indeed!


Anonymous
TRIALOP

2 years ago

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 -


Anonymous
TRIALOP

2 years ago

cool. thnx.

can i use A and AAA recs for domain? i see only CNAME option


2 years ago

you can only use CNAMEs as railway does not provide static IPs yet


Anonymous
TRIALOP

2 years ago

ah i see. i got that issue with "redirected too many times" . figuring it out. any clue?


2 years ago


Anonymous
TRIALOP

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


Anonymous
TRIALOP

2 years ago

it's flattered


2 years ago

I'm sorry I don't know what that means


Anonymous
TRIALOP

2 years ago

found it


Anonymous
TRIALOP

2 years ago

successfullyy happy migrated!
https://readway.app/


2 years ago

happy to hear that!


Anonymous
TRIALOP

2 years ago

now on new Rails ! ha : )


Anonymous
TRIALOP

2 years ago

thanks 🖐️


2 years ago

happy to help!


Loading...