Don't define a restart command unless the current instance is in the "rails-app" layer
properly declare the $stack_name variable and leave off trailing php tag

this will prevent php from prematurely sending headers in certain configurations
http://stackoverflow.com/questions/4410704/why-would-one-omit-the-close-tag
correct debug message in php::configure
Change environment to environment_variables to avoid naming collision
Merge pull request #165 from ziggythehamster/skip-restart-command-when-not-on-rails-app-instance

Don't define a restart command unless the current instance is in the "rails-app" layer.
Merge pull request #176 from pixelcog/master-chef-11.10-phpfix

Fixes for PHP Cookbook
allow ActiveRecord to exist without starting connections - particularly useful for mongoid Rails apps.
built from opsworks_agent_monit as an example
first pass of launching resque built into our app

simpler version of grantoo_resque_monit - might work

less code from sample to deploy monit file

fix missing info and try to include @deploy via deploy::deploy

fix missing info and try to include @deploy via deploy::deploy

add @ to deploy... hmmm

debug with yaml

remove debug with yaml

allow restarting once installed
remove other confusing break-outs

change output so monit will be restarted

monit needs a real group for deploy

monit needs a real group for deploy - last one was backwards systems

create a separate monit for each worker process per cpu
remove old configs before deploying - in case there is a scaling up or down.

fix bug with notifies - needs to be within template
add resque scheduler recipe

fix install of resque scheduler recipe

2nd try fix
adjust erb to put enviroment variables before nohup call
try a different scheduler launching mechanism

fix opsworks scripts

help monit monitor the starting and running of the scheduler

monit needs to match scheduler init

try a different way to ensure user and path are honored during monit start and stop

remove ancilliary stuff
change mode for monit files
add RUBY_GC_MALLOC_LIMIT for starting the ruby stuff (faster faster)
slow down stop and start timeouts
update unicorn for newrelic and nginx
Changed resque kill to quit signal

Used a different syntax for pkill

Added a kill resque script

Added better ouput

Fixed syntax

Log to rails log

fixed logging

Tried chef log

Fix syntax

do not use worker # when removing worker pid

Do not use worker # when removing worker pid
More logs

chef log doesn't work for console commands

maybe #{} syntax doesn't work in chef

Changed syntax to work with deploy_to

Fixed syntax

Fixed pkill by giving it full path

Uses monit to run kill script

Remove bad whitespace

execute monit in context of a bash
http://mmonit.com/wiki/Monit/FAQ#execution

Added proper mode for monitrc file

Updated log message for kill script
Cloned kill script to be name stopped for better clarification
Added start script
fix opsworks scripts

run is bad where I put it. commenting out

use bash to run monit restart for all
maybe a different reconnect for unicorn redis is the way to go on our shit.
more specifically restart resque workers - in a completely different way.

allow the immediate killing of resque to be always successful, and the monit validate to pass even when it may not on smaller instances

better commenting
add a way to build assets for projects that need it

do we need the full path for bundle to work?

do we need to specify the interpreter?

it seemed to work, but didn't

use bash directly to run code

restart to unicorn after assets are rebuilt
use bash directly to run code

remove files in nginx conf.d directory

separate into cleanconf recipe to remove files in nginx conf.d directory, so that it can be called during setup as an override

simplify recipe because it didn't run last time

add some logs into the recipe cleanconf

add some more debugging logs into the recipe cleanconf