How to setup my app?
It errors out, and @Adam says that I need a docker image to get railway working with the lang I am using. I have found the image: https://hub.docker.com/repository/docker/nimlang/nim/ but i have never used docker and don't know how to implement it
20 Replies
Project ID:
5ab21ded-4893-4eb7-9e05-02e3e2fc2e9d
5ab21ded-4893-4eb7-9e05-02e3e2fc2e9d
Please post your github repo as well
won't help... as it is private, but ok: https://github.com/thatrandomperson5/Random-Battle-Snake
Gotta make it public then
public*
oop yeah
There is a public replit one (moving from replit)
https://replit.com/@dragonhunter1/Random-Battle-Snake
Best to give as much info as possible so people can help you out
tldr, they're deploying nim
know of any templates @Brody
i gtg, pls ping on replies
yes, i do
@not logged in - https://github.com/brody192/nim-jester-template
that is only for jester.. But it is what I am using anyway, so thanks!
omg it is working!
thanks!
I am now getting server error when trying to access the url: random-battle-snake-production.up.railway.app
let me try setting the port var
everything works now! thanks!
love to hear it!
Welcome to Battlesnake and Railway!
π
I am still using replit for devl and testing, but now i just push to the gh branch, make a pr, then merge and it is on railway. Super easy once you get setup!
awesome, glad my template helped you, it was my first time using nim
Totally valid, I do all my testing locally because I have it all set up
1 thing I do want want you to note is that
nimble build
does not build a release version, it builds a debug one. Optimally the dockerfile should be this:
wow I could have sworn I read somewhere that nimble build uses -d:release internally
thank you though, I will make this change
nimble install does, nimble build does not π
thank you for the tip, much appreciated π