Go Deploy Gone Wrong
Hey all, need a sanity check on a failing deploy. I am able to build and run my app locally just fine with my Dockerfile but it fails when I attempt to deploy on Railway. Interestingly, I have used the exact same project structure and Dockerfile to deploy an app to Railway before too.
28 Replies
Project ID:
3a924444-5f7c-477b-a993-438ff0417e6d
3a924444-5f7c-477b-a993-438ff0417e6d
service id: f4b778dc-aa7e-4d96-acf0-53e538f72d79
what a title lol
send the dockerfile please?
would you mind wrapping that in triple backticks
ofc...
yeah that looks like a perfectly good dockerfile, very similar to the one I use, what exactly is failing?
wanna try
./...
instead of that path?to clarify
?
yep
hmmm
yeah its a weird one
I'm hmmm'ing too
appreciate the quick response, FWIW, I have tried things like deleting the project/service in case there was some weird caching of the context etc but no luck
would you mind sharing your repo?
or maybe a minimal reproducible example repo?
I wouldn't be able to share the repo but I can promise that the structure is correct
maybe it's because you have a folder named colosseum and are trying to output the binary as colosseum too
change the output bin to just
app
or something🤞
Dang, I tried
ls -la /app/internal/cmd && ls -la /app/internal/cmd/colosseum
inside the Dockerfile and somehow that dir is actually not there, super weird but nothing in the dockerignore and works just fine locally...
I'm not just saying this, but that was my first thought, I really don't know why I didn't say anything
also, why dockerignore instead of just a .gitignore, do you have things you want in the repo and not in the image?
I was using the railway cli to test, does that also ignore .gitignore when building? (wasn't sure) but I see your point, but just for sanity, I removed both but the issue remains
the cli will omit tarballing files/folders based on rules in either a .gitignore or a .railwayignore file
ah nice, good to know
I know you've shown me a tree, but if you'd provide me with a repo that has a minimal reproducible example, id be happy to debug it myself too
Will do, let me try and put something together!
sounds good
of course the repro attempt actually works RIP
lmao make it not work
Alright will take some time to chew on this and see if I can see whats up, I'll be sure to update you on here if I do figure it out or if I don't
Once again, appreciate your help so far
sounds good 🙂