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
a year ago
a year ago
says it fails to build Dockerfile
a year ago
no error logs
a year ago
a year ago
its from official docs for my http server
a year ago
so should be correct
a year ago
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?
a year ago
no logs
a year ago
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
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
a year ago
so bunlock is at root
a year ago
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
a year ago
oh i see
a year ago
a year ago
yay
a year ago
where can I see the deployed url
a year ago
oh i see
a year ago
ok trying
a year ago
a year ago
I get 404 trying to hit it
a year ago
a year ago
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
a year ago
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
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 -