Skip to content
/ caphook Public

Small sinatra app to execute capistrano deploys via HTTP calls

License

Notifications You must be signed in to change notification settings

konsti/caphook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caphook

Caphook is a simple Sinatra app to execute Capistrano tasks via HTTP calls.

Installation

$ git clone git@github.com:konsti/caphook.git
  • Create config/caphook.yml according to your needs. Look at config/caphook.yml.sample for help.

  • Install Riak with localhost access

    $ bundle install

Dependencies

  • Ruby (> 1.9.3)
  • Riak (> 1.1.2)

Server

$ thin start -R config.ru -d -p 4567

You can also create a Profile and use foreman (included in the Gemfile)

Use Caphook

Now you're able to deploy your project with HTTP calls

GET /cap/{project_name}?command={cap_command_included_in_config}

Optional Param:

user={user_string}

You can also view your log files with

GET /logs

TODOs

  • Caphook requires all Capistrano dependencies of the target projects in his Gemfile. This needs to be fixed, so that Caphook loads the target project bundle and calls the 'cap' command correctly. Pull Requests welcomed.

Credits

License

Caphook is released under the MIT license:
http://www.opensource.org/licenses/MIT

About

Small sinatra app to execute capistrano deploys via HTTP calls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages