0.0
No commit activity in last 3 years
No release in over 3 years
blazing recipe for restarting/reloading app with upstart
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Blazing Upstart

Upstart recipe for blazing

If you run your applications with upstart, this lets you restart/reload after a deployment.

The expectation is that you have a Procfile with your processes in it. You can set certain processes to receive a reload instead of a restart. That is very useful if, for example, you run your app with unicorn.

Installation

Add gem 'blazing-upstart' to your Gemfile

Usage

Enable the recipes you want in your blazing configuration file. Options can be provided in the recipe call or with the target method. Target options have precedence over recipe options.

# Restart the processes
#
#   recipe :restart_processes, [options]
#
# Options:
#
#   :reload (Set which processes reload instead of restart)
#   :app (Set your app name to something different than the folder name)
#   :procfile (Set if you use a Procfile not named Procfile)
#   :sudo (Set if you use a different sudo command, ie rvmsudo)
#
# Example:

recipe :restart_processes, :reload => 'web'

Authors

Daniel Farrell (@danielfarrell)

License

See the MIT-LICENSE file