Simple init script to manage multiple unicorn instance
ponyscript to any place you like
- Put all files from
unicornto your system
unicorn.rbinto your project
- Change user name & application path in *.conf files
- Make sure that you have bundle & unicorn gems installed
To control your unicorn instances run:
sh /path/to/pony [-t] [-j] -c <start|stop|restart> [-i <instance>] [-e <development|production|test>]
<instance> is a name of one of your configuration files in
If you don't pass it with
-i parameter, hornypony will execute selected command for all instances.
By default environment parameter is
To change it on start or restart pass
-e parameter as showed in example above.
pony that it must to start, stop or restart additional scripts like an
Configuration files for that scripts can be placed in
These files should be named identical to the name of the instance.