Skip to content

Instantly share code, notes, and snippets.

@xdite xdite/gitploy.rb
Last active Dec 16, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.