Last active
August 29, 2015 13:56
-
-
Save egulias/8861458 to your computer and use it in GitHub Desktop.
Building GoLang with capifony
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task :compile_go do | |
try_sudo "mkdir -p #{latest_release}/bin" | |
run "sh -c 'export GOPATH=#{latest_release} && cd #{latest_release}/bin && go get yorGoAppDir}'" | |
run "sh -c 'export GOPATH=#{latest_release} && cd #{latest_release}/bin && go build ../path/to/app.go'" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
task :compile_go do try_sudo "mkdir -p #{latest_release}/bin" run "sh -c 'export GOPATH=#{latest_release} && cd #{latest_release}/bin && go get yorGoAppDir'" run "sh -c 'export GOPATH=#{latest_release} && cd #{latest_release}/bin && go build path/to/app.go'" end
The path is goes in every "sh"