Skip to content

Instantly share code, notes, and snippets.

@bsodmike
Forked from anonymous/sv-unicorn-run.erb
Created December 9, 2013 17:44
Show Gist options
  • Save bsodmike/7876618 to your computer and use it in GitHub Desktop.
Save bsodmike/7876618 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd <%= @options[:app_dir] %>
exec 2>&1
exec <%= node[:runit][:chpst_bin] %> -e /etc/sv/<%= @options[:service_name] %>/env -u <%= @options[:app_user]%>:unicorn <%= @options[:bundler_binary] %> exec unicorn -E <%= @options[:environment] %> -c <%= @options[:config] %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment