Deployment issues in Golang project
Project id : 4e543459-a744-4198-970b-be420281426a
I am trying to deploy a go lang application, it's services where setup in a docker compose file but i noticed docker compose is not supported yet. So i created a redis and postgres service in my project but after building the deploy logs give this error : github.com/go-redis/redis/v8: /usr/local/go/pkg/tool/linux_amd64/compile: signal: killed
failed to build, error: exit status 1
34 Replies
Project ID:
4e543459-a744-4198-970b-be420281426a
please do not use air when on railway
are you using a dockerfile?
hey brody, thanks for reaching out. yes i am using a docker file, along with a docker compose .yml file
i would remove air now and retry
railway doesn't do anything with the compose file, so send me the Dockerfile please
not very ideal tbh
i just tried to tweak it now to remove air and run with go run. however if u can suggest a better one, would be much appreciated
working on it
thanks
how about the services on the docker compose, redis and postgres. that would mean i have to set that up manually? and how so.
you said you already added them didnt you?
yhh i did, was just confirming if any relative setup would be required after
have you added the service variables?
https://docs.railway.app/develop/variables#reference-variables
the
COPY .env .env
has been omitted on purpose, you should absolutely not commit your .env file to your repo
even if it is a private repoHello good morning, thanks for assisting. so i have updated the files, the build runs but it fails to connect to the db
^