Skip to content

Instantly share code, notes, and snippets.

@xdite
Last active December 16, 2015 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xdite/5424771 to your computer and use it in GitHub Desktop.
Save xdite/5424771 to your computer and use it in GitHub Desktop.
require 'gitploy/script'
configure do |c|
c.path = '/home/apps/yourbot'
stage :production do
c.host = 'yourcompany.com'
c.user = 'apps'
end
end
setup do
remote do
run "mkdir -p #{config.path}"
run "cd #{config.path} && git init"
run "git config --bool receive.denyNonFastForwards false"
run "git config receive.denyCurrentBranch ignore"
end
end
deploy do
push!
remote do
run "cd #{config.path}"
run "git reset --hard"
run "bundle install --deployment"
run "bundle exec bin/isis restart"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment