0.0
No commit activity in last 3 years
No release in over 3 years
Tasks for deploying to a stack running god, rbenv and whatever rails server
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

MeowDeploy

Tasks for deploying to a stack running god, rbenv and whatever rails server

Has only been tested on Ubuntu 12.04 and 12.10 with ruby 1.9.3-p286 using user-local rbenv install

Installation

Install from rubygems:

gem install meow-deploy

Usage

Add the library to your Gemfile:

group :development do
  gem 'meow-deploy', :require => false
end

And load it into your deployment script config/deploy.rb:

require 'meow-deploy'

Add necessary hooks:

after 'deploy:restart', 'god:reload', 'god:restart'

Make sure you set up the PATH env variable to include rbenv paths. For example if rbenv is installed in deployment user's home:

set :default_environment, {
  'PATH' => "/home/#{user}/.rbenv/shims:/home/#{user}/.rbenv/bin:$PATH"
}

Add optional hooks for uploading your .rbenv-vars file if you're using the rbenv-vars plugin:

after 'deploy:finalize_update', 'secrets:upload', 'secrets:symlink'

Create a new configuration file config/god.conf.

Example config - examples/god.conf. Please refer to godrb documentation for more examples and configuration options.

Configuration

You can modify any of the following options in your deploy.rb config.

  • rbenv - Full path to rbenv. Given user is deploy defaults to /home/deploy/.rbenv/bin/rbenv
  • god_sites_path - Directory where god configs for all apps on the server are symlinked for reloading after reboot. Given user is deploy defaults to /home/deploy/sites/god
  • god_app_path - App-specific god.conf. Defaults to #{current_path}/config/god.conf.
  • bundle_flags - Bundler flags for generating binstubs that use rbenv. Defaults to --deployment --quiet --binstubs --shebang ruby-local-exec

License

See LICENSE file for details.