Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/springmt/unicorn_process_manager
https://github.com/springmt/unicorn_process_manager
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/springmt/unicorn_process_manager
- Owner: SpringMT
- License: mit
- Created: 2013-04-05T03:29:13.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-13T01:59:04.000Z (about 11 years ago)
- Last Synced: 2024-12-07T00:55:12.142Z (about 2 months ago)
- Language: Ruby
- Size: 121 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# UnicornProcessManager
## Installation
Add this line to your application's Gemfile:
gem 'unicorn_process_manager', github: 'SpringMT/unicorn_process_manager'
And then execute:
$ bundle
**The gem doesn't upload rubygems.org!**
## Usage
### sample script
* script/unicorn_manager
~~~~
#!/usr/bin/env ruby
# encoding: UTF-8require 'optparse'
require 'unicorn_process_manager'action = ARGV.shift || '
rails_env = 'production'
rails_home = "#{ENV['HOME']}/hoge"
timeout = 60opt = OptionParser.new(ARGV)
opt.on('-e rails_env') { |e| rails_env = e }
opt.on('-h rails_home') { |h| rails_home = h }
opt.on('-t timeout_sec') { |t| timeout = t.to_i }
opt.parse!unicorn = UnicornProcessManager.new(rails_env, rails_home, timeout)
unicorn.send action'
~~~~
### command
~~~~~
script/unicorn_manager {start|stop|restart|status|reopen_log} [-e RAILS_ENV] [-h RAILS_HOME] [-t timeout_sec] [-p port]
~~~~~## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request