Skip to content

Instantly share code, notes, and snippets.

@mataki
Created November 5, 2009 08:09
Show Gist options
  • Save mataki/226871 to your computer and use it in GitHub Desktop.
Save mataki/226871 to your computer and use it in GitHub Desktop.
# gem install paulj-hookout --source http://gems.github.com
# gem install sinatra
require 'rubygems'
require 'sinatra'
require 'hookout'
HOOKURL_APPNAME = 'reverse-http-app-name'
set :server, 'hookout'
set :host, 'http://www.reversehttp.net/reversehttp'
set :port, HOOKURL_APPNAME
post '/' do
system('git pull')
system('rake db:migrate')
system('touch tmp/restart.txt')
"Succedded"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment