Last active
December 16, 2015 11:08
-
-
Save xdite/5424771 to your computer and use it in GitHub Desktop.
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
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