I'm totaly new to go (it looks fabulous btw).
So I want to build a "web-"app in go with the revel framework. The problem is I code on my mac (os : darwin, arch : amd64) and I want to deploy the app on my server (os : ubuntu 12.04, arch : amd64).
I "go get" revel in local (so bin/revel
it's a: Mach-O 64-bit executable) which is non executable on my server.
For now when I push (with git), I've got a post-receive script to build the app (revel build myapp /path/to/deploy
). Before I've tried to "go get" revel on my server, but it failed too.
It's not working, I could understand why, but I don't have any idea how to get a workable workflow :
- Code on my mac
- Push my code (with git)
- Build the app on the server
PS: I've read http://blog.gopheracademy.com/auto-deploy-revel-site, http://revel.github.io/manual/deployment.html as well as articles about cross-compilation)