Skip to content

linux build problem for golang application #1824

Closed Answered by caarlos0
Tsovak asked this question in Q&A
Discussion options

You must be logged in to vote

Are you embedding the files in your go code? AFAIK, for that to work you need to embed the files in your go code with something like go.rice, statik or something like that.

It probably works locally because you build and run in the folder your code is, so the paths are there, if you move the binary to another folder and run it, it will probably fail too.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Tsovak
Comment options

@caarlos0
Comment options

@Tsovak
Comment options

@caarlos0
Comment options

Answer selected by Tsovak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants