sv-unicorn-run.erb 316 B

1234567
  1. #!/bin/bash
  2. cd <%= @options[:app]['deploy_to'] %>/current
  3. exec 2>&1
  4. exec <%= node[:runit][:chpst_bin] %> -u <%= @options[:app]["owner"] %>:<%= @options[:app]["group"] %> <%= @options[:smells_like_rack] ? 'unicorn' : 'unicorn_rails' %> -E <%= @options[:rails_env] %> -c /etc/unicorn/<%= @options[:app]['id'] %>.rb