sv-unicorn-run.erb 296 B

1234567
  1. #!/bin/bash
  2. cd <%= @options['app']['deploy_to'] %>/current
  3. exec 2>&1
  4. exec chpst -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