Help deploying Dockerfile of Elysia server to Railway
nikiv
HOBBYOP

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

79 Replies

nikiv
HOBBYOP

a year ago

not sure what I should do


nikiv
HOBBYOP

a year ago

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


brody
EMPLOYEE

a year ago

same thing with railway.. railway up


brody
EMPLOYEE

a year ago

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

1250478905018683600


nikiv
HOBBYOP

a year ago

1250481700233023500


nikiv
HOBBYOP

a year ago

says it fails to build Dockerfile


nikiv
HOBBYOP

a year ago

no error logs



nikiv
HOBBYOP

a year ago

its from official docs for my http server



nikiv
HOBBYOP

a year ago

so should be correct


nikiv
HOBBYOP

a year ago

1250481852691775500


nikiv
HOBBYOP

a year ago

it runs locally


brody
EMPLOYEE

a year ago

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


nikiv
HOBBYOP

a year ago

Logs?

1250482137845727200


nikiv
HOBBYOP

a year ago

no logs


nikiv
HOBBYOP

a year ago

1250482164525564200


brody
EMPLOYEE

a year ago

open the deployments build logs


nikiv
HOBBYOP

a year ago

trying to find


nikiv
HOBBYOP

a year ago

yea not sure


brody
EMPLOYEE

a year ago

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


nikiv
HOBBYOP

a year ago

oh i see


nikiv
HOBBYOP

a year ago

1250482616730128400


nikiv
HOBBYOP

a year ago

i see


nikiv
HOBBYOP

a year ago

ok will try fix, thank you


brody
EMPLOYEE

a year ago

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



nikiv
HOBBYOP

a year ago

yea its just my repo is monorepo


nikiv
HOBBYOP

a year ago

1250482767347716000


nikiv
HOBBYOP

a year ago

so bunlock is at root


nikiv
HOBBYOP

a year ago

1250482795906728000


nikiv
HOBBYOP

a year ago

but my dockerfile is in api/


nikiv
HOBBYOP

a year ago

not sure what best to do


nikiv
HOBBYOP

a year ago

move Dockerfile at root


nikiv
HOBBYOP

a year ago

i guess


brody
EMPLOYEE

a year ago

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


nikiv
HOBBYOP

a year ago

omg


nikiv
HOBBYOP

a year ago

thank you so much


brody
EMPLOYEE

a year ago

nope


nikiv
HOBBYOP

a year ago

will be afk so take your time ❤️


nikiv
HOBBYOP

a year ago

very grateful


brody
EMPLOYEE

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


nikiv
HOBBYOP

a year ago

merged pr


nikiv
HOBBYOP

a year ago

I connected repo to railway


nikiv
HOBBYOP

a year ago

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


nikiv
HOBBYOP

a year ago

1250538872056578300


nikiv
HOBBYOP

a year ago

oh i see


nikiv
HOBBYOP

a year ago

1250538992512798700


nikiv
HOBBYOP

a year ago

yay

1250539074142343400


nikiv
HOBBYOP

a year ago

where can I see the deployed url


nikiv
HOBBYOP

a year ago

oh i see

1250539285631996200


nikiv
HOBBYOP

a year ago

ok trying


nikiv
HOBBYOP

a year ago

1250539519640600600


nikiv
HOBBYOP

a year ago

I get 404 trying to hit it


nikiv
HOBBYOP

a year ago

1250539607775248600


nikiv
HOBBYOP

a year ago

1250539680919982000


nikiv
HOBBYOP

a year ago

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


nikiv
HOBBYOP

a year ago

to hit the port


nikiv
HOBBYOP

a year ago

but that fails too


nikiv
HOBBYOP

a year ago

perhaps I misunderstand the domain


brody
EMPLOYEE

a year ago

the updates you have sent while I was afk are awesome


brody
EMPLOYEE

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


nikiv
HOBBYOP

a year ago

1250584219596488700


nikiv
HOBBYOP

a year ago

1250584241872306200


nikiv
HOBBYOP

a year ago

getting this error


nikiv
HOBBYOP

a year ago

even with RONIN_TOKEN set


nikiv
HOBBYOP

a year ago

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


nikiv
HOBBYOP

a year ago

I did deploy after adding the token


nikiv
HOBBYOP

a year ago

ohh


nikiv
HOBBYOP

a year ago

it went through


nikiv
HOBBYOP

a year ago

1250584491420946400


nikiv
HOBBYOP

a year ago

very cool


nikiv
HOBBYOP

a year ago

thank you


nikiv
HOBBYOP

a year ago

so if i get it right


nikiv
HOBBYOP

a year ago

how do i do a deploy of new api version now


brody
EMPLOYEE

a year ago

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


nikiv
HOBBYOP

a year ago

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


nikiv
HOBBYOP

a year ago

otherwise it's kind of wasteful to do builds


brody
EMPLOYEE

a year ago

yes -


Loading...