2 years 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
2 years ago
not sure what I should do
2 years ago
with fly.io I could do something like flyctl launch and it would pick up the Dockerfile and deploy it
2 years ago
same thing with railway.. railway up
2 years ago
or if its already in github, simply choose the desired repo

2 years ago

2 years ago
says it fails to build Dockerfile
2 years ago
no error logs
2 years ago
2 years ago
its from official docs for my http server
2 years ago
so should be correct
2 years ago

2 years ago
it runs locally
2 years ago
looks like the cli exited before it printed the full build logs, go check the dashboard
2 years ago
Logs?

2 years ago
no logs
2 years ago

2 years ago
open the deployments build logs
2 years ago
trying to find
2 years ago
yea not sure
2 years ago
click on the service, click on the red deployment, click on build
2 years ago
oh i see
2 years ago

2 years ago
i see
2 years ago
ok will try fix, thank you
2 years ago
i think i know whats up, not a code issue, this is a config issue
2 years ago
yea its just my repo is monorepo
2 years ago

2 years ago
so bunlock is at root
2 years ago

2 years ago
but my dockerfile is in api/
2 years ago
not sure what best to do
2 years ago
move Dockerfile at root
2 years ago
i guess
2 years ago
yeah, ill fork that and get it deploying, then will come back with instructions
2 years ago
omg
2 years ago
thank you so much
2 years ago
nope
2 years ago
will be afk so take your time ❤️
2 years ago
very grateful
2 years 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
2 years ago
merged pr
2 years ago
I connected repo to railway
2 years ago
how do I set a service variable RAILWAY_DOCKERFILE_PATH=/docker/api/Dockerfile
2 years ago

2 years ago
oh i see
2 years ago

2 years ago
yay

2 years ago
where can I see the deployed url
2 years ago
oh i see

2 years ago
ok trying
2 years ago

2 years ago
I get 404 trying to hit it
2 years ago

2 years ago

2 years ago
thought it would be drophunt-production-0380.up.railway.app:6958
2 years ago
to hit the port
2 years ago
but that fails too
2 years ago
perhaps I misunderstand the domain
2 years ago
the updates you have sent while I was afk are awesome
2 years ago
it is https://drophunt-production-0380.up.railway.app
the https is key since it's exposed via port 443 externally
2 years ago

2 years ago

2 years ago
getting this error
2 years ago
even with RONIN_TOKEN set
2 years ago
it is being read from process.env.RONIN_TOKEN in the server
2 years ago
I did deploy after adding the token
2 years ago
ohh
2 years ago
it went through
2 years ago

2 years ago
very cool
2 years ago
thank you
2 years ago
so if i get it right
2 years ago
how do i do a deploy of new api version now
2 years ago
made the code changes, commit to github, and railway will do a new build for you
2 years ago
can I tell railway to only do build if changes to api/ folder are made?
2 years ago
otherwise it's kind of wasteful to do builds
2 years ago
yes -