Skip to content

Instantly share code, notes, and snippets.

@martinjuhasz
Created January 3, 2012 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinjuhasz/a69109245f38eb6f359d to your computer and use it in GitHub Desktop.
Save martinjuhasz/a69109245f38eb6f359d to your computer and use it in GitHub Desktop.
the plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>
<key>Label</key>
<string>mj.unicorn.q</string>
<key>ProgramArguments</key>
<array>
<string>/Users/server/.rvm/gems/ruby-1.9.2-head@q/bin/unicorn</string>
<string>-c</string>
<string>/Users/server/Sites/Rails/q/config/unicorn.rb</string>
<string>-E</string>
<string>production</string>
</array>
<key>WorkingDirectory</key>
<string>/Users/server/Sites/Rails/q</string>
<key>RunAtLoad</key>
<true/>
<key>EnableTransactions</key>
<false/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
// not working
$ ~ /Users/server/.rvm/gems/ruby-1.9.2-head@q/bin/unicorn -c /Users/server/Sites/Rails/q/config/unicorn.rb -E production
// working
$ ~ cd /Users/server/Sites/Rails/q
$ ~ /Users/server/.rvm/gems/ruby-1.9.2-head@q/bin/unicorn -c /Users/server/Sites/Rails/q/config/unicorn.rb -E production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment