Help deploying Dockerfile of Elysia server to Railway
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
GitHub
drophunt/api/Dockerfile at main · nikitavoloboev/drophunt
Contribute to nikitavoloboev/drophunt development by creating an account on GitHub.
Solution:Jump to solution
did a PR - https://github.com/nikitavoloboev/drophunt/pull/1
this requires you to deploy from github.
set a service variable
RAILWAY_DOCKERFILE_PATH=/docker/api/Dockerfile
connect the repo in your service settings...56 Replies
Project ID:
N/A
not sure what I should do
with fly.io I could do something like
flyctl launch
and it would pick up the Dockerfile and deploy itsame thing with railway..
railway up
or if its already in github, simply choose the desired repo and railway will use the Dockerfile automatically
says it fails to build Dockerfile
no error logs
GitHub
drophunt/api/Dockerfile at main · nikitavoloboev/drophunt
Contribute to nikitavoloboev/drophunt development by creating an account on GitHub.
its from official docs for my http server
Docker - ElysiaJS
You use Elysia with Docker with the following Dockerfile by using "oven/bun", or copy the snippet from the page
so should be correct
it runs locally
looks like the cli exited before it printed the full build logs, go check the dashboard
Logs?
no logs
open the deployments build logs
trying to find
yea not sure
click on the service, click on the red deployment, click on build
oh i see
i see
ok will try fix, thank you
i think i know whats up, not a code issue, this is a config issue
GitHub
GitHub - nikitavoloboev/drophunt
Contribute to nikitavoloboev/drophunt development by creating an account on GitHub.
yea its just my repo is monorepo
so bunlock is at root
but my dockerfile is in
api/
not sure what best to do
move Dockerfile at root
i guessyeah, ill fork that and get it deploying, then will come back with instructions
omg
thank you so much
nope
will be afk so take your time ❤️
very grateful
Solution
did a PR - https://github.com/nikitavoloboev/drophunt/pull/1
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 deploysmerged pr
I connected repo to railway
how do I
set a service variable RAILWAY_DOCKERFILE_PATH=/docker/api/Dockerfile
oh i see
yay
where can I see the deployed url
oh i see
ok trying
I get 404 trying to hit it
thought it would be
drophunt-production-0380.up.railway.app:6958
to hit the port
but that fails too
perhaps I misunderstand the domain I should usethe updates you have sent while I was afk are awesome
it is
https://drophunt-production-0380.up.railway.app
the https is key since it's exposed via port 443 externallygetting this error
even with
RONIN_TOKEN
set
it is being read from process.env.RONIN_TOKEN
in the server
ohh
it went throughvery cool
thank you
so if i get it right
how do i do a deploy of new api version now
made the code changes, commit to github, and railway will do a new build for you
can I tell railway to only do build if changes to
api/
folder are made?
otherwise it's kind of wasteful to do builds