layout: post title: First post date: 2014-07-22 17:22:53.000000000 +00:00 categories: random tags:
- first
- post status: publish type: post
## Not sure where I copied this script from..so no reference link | |
apt-get install software-properties-common # debian only | |
add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./" | |
curl -L https://cli-assets.heroku.com/apt/release.key | apt-key add - | |
apt-get update |
# config/unicorn.rb | |
worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3) | |
timeout 15 | |
preload_app true | |
before_fork do |server, worker| | |
Signal.trap 'TERM' do | |
puts 'Unicorn master intercepting TERM and sending myself QUIT instead' | |
Process.kill 'QUIT', Process.pid | |
end |
layout: post title: First post date: 2014-07-22 17:22:53.000000000 +00:00 categories: random tags: