Skip to content
Sinatra application that recieves POST requests from Github, then pulls changes, migrates the DB and restarts the application.
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
public
tmp
vendor
views
.gitignore
MIT-LICENSE
README.rdoc
config.ru
config.yml.EXAMPLE
deploy.rb
start_server.rb

README.rdoc

Deploy Magic

Recieves POST request from Github, then pulls changes, migrates the DB and restarts the application.

Useage

  1. Clone the application: git clone git://github.com/iamsolarpowered/deploy_magic

  2. Copy the example configuration file to config.yml: cp config.yml.EXAMPLE config.yml

  3. Edit config.yml as needed

  4. Configure Apache (with Passenger), pointing to /path/to/app/public, or start the server by running ruby /path/to/app/start_server.rb

  5. Setup Post-Recieve URL to hit username:password@urlofapp.com/name_of_repo (see github.com/guides/post-receive-hooks)

That's it. Now, when you push to the Github repo, the changes will be pulled to the server, any new migrations will be run, and the app will be restarted. Instant, painless deployment.

Legal

Copyright 2009 Ben Shymkiw. Released under the MIT License.

Something went wrong with that request. Please try again.