Skip to content

Instantly share code, notes, and snippets.

@egulias
Last active August 29, 2015 13:56
Show Gist options
  • Save egulias/8861458 to your computer and use it in GitHub Desktop.
Save egulias/8861458 to your computer and use it in GitHub Desktop.
Building GoLang with capifony
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
@marco-msg-ferrari
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment