Help deploying Dockerfile of Elysia server to Railway

a year ago

have Dockerfile here: https://github.com/nikitavoloboev/drophunt/blob/main/api/Dockerfile

not sure how to deploy it cleanly, tried searching just Dockerfile here, found nothing

0 Replies

a year ago

not sure what I should do


a year ago

with fly.io I could do something like flyctl launch and it would pick up the Dockerfile and deploy it


a year ago

same thing with railway.. railway up


a year ago

or if its already in github, simply choose the desired repo

1250478905018683600


a year ago

1250481700233023500


a year ago

says it fails to build Dockerfile


a year ago

no error logs



a year ago

its from official docs for my http server



a year ago

so should be correct


a year ago

1250481852691775500


a year ago

it runs locally


a year ago

looks like the cli exited before it printed the full build logs, go check the dashboard


a year ago

Logs?

1250482137845727200


a year ago

no logs


a year ago

1250482164525564200


a year ago

open the deployments build logs


a year ago

trying to find


a year ago

yea not sure


a year ago

click on the service, click on the red deployment, click on build


a year ago

oh i see


a year ago

1250482616730128400


a year ago

i see


a year ago

ok will try fix, thank you


a year ago

i think i know whats up, not a code issue, this is a config issue



a year ago

yea its just my repo is monorepo


a year ago

1250482767347716000


a year ago

so bunlock is at root


a year ago

1250482795906728000


a year ago

but my dockerfile is in api/


a year ago

not sure what best to do


a year ago

move Dockerfile at root


a year ago

i guess


a year ago

yeah, ill fork that and get it deploying, then will come back with instructions


a year ago

omg


a year ago

thank you so much


a year ago

nope


a year ago

will be afk so take your time ❤️


a year ago

very grateful


a year ago

did a PR -
this requires you to deploy from github.

set a service variable RAILWAY_DOCKERFILE_PATH=/docker/api/Dockerfile
connect the repo in your service settings
wait until it deploys


a year ago

merged pr


a year ago

I connected repo to railway


a year ago

how do I set a service variable RAILWAY_DOCKERFILE_PATH=/docker/api/Dockerfile


a year ago

1250538872056578300


a year ago

oh i see


a year ago

1250538992512798700


a year ago

yay

1250539074142343400


a year ago

where can I see the deployed url


a year ago

oh i see

1250539285631996200


a year ago

ok trying


a year ago

1250539519640600600


a year ago

I get 404 trying to hit it


a year ago

1250539607775248600


a year ago

1250539680919982000


a year ago

thought it would be [drophunt-production-0380.up.railway.app:6958](drophunt-production-0380.up.railway.app:6958)


a year ago

to hit the port


a year ago

but that fails too


a year ago

perhaps I misunderstand the domain


a year ago

the updates you have sent while I was afk are awesome


a year ago

it is [https://drophunt-production-0380.up.railway.app](https://drophunt-production-0380.up.railway.app)
the https is key since it's exposed via port 443 externally


a year ago

1250584219596488700


a year ago

1250584241872306200


a year ago

getting this error


a year ago

even with RONIN_TOKEN set


a year ago

it is being read from process.env.RONIN_TOKEN in the server


a year ago

I did deploy after adding the token


a year ago

ohh


a year ago

it went through


a year ago

1250584491420946400


a year ago

very cool


a year ago

thank you


a year ago

so if i get it right


a year ago

how do i do a deploy of new api version now


a year ago

made the code changes, commit to github, and railway will do a new build for you


a year ago

can I tell railway to only do build if changes to api/ folder are made?


a year ago

otherwise it's kind of wasteful to do builds


a year ago

yes -