Instantly share code, notes, and snippets.

Embed
What would you like to do?
<VirtualHost *:80>
ServerName your-hostname.local
DocumentRoot "/Users/gitlab/gitlab/public"
<Directory "/Users/gitlab/gitlab/public">
Options All -Indexes -ExecCGI -Includes -MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Proxy balancer://gitlabservers>
BalancerMember http://127.0.0.1:5000
</Proxy>
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://gitlabservers%{REQUEST_URI} [P,QSA,L]
</VirtualHost>
<?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>KeepAlive</key>
<true/>
<key>Label</key>
<string>gitlab.sidekiq</string>
<key>ProgramArguments</key>
<array>
<string>/Users/gitlab/.rvm/bin/bootup_bundle</string>
<string>exec</string>
<string>sidekiq</string>
<string>-q</string>
<string>post_receive,mailer,system_hook,project_web_hook,gitolite,common,default</string>
<string>-e</string>
<string>production</string>
<string>-P</string>
<string>/Users/gitlab/gitlab/tmp/pids/sidekiq.pid</string>
</array>
<key>EnvironmentVariables</key>
<array>
<key>RAILS_ENV</key>
<string>production</string>
</array>
<key>WorkingDirectory</key>
<string>/Users/gitlab/gitlab</string>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>gitlab</string>
</dict>
</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>KeepAlive</key>
<true/>
<key>Label</key>
<string>gitlab.unicorn</string>
<key>ProgramArguments</key>
<array>
<string>/Users/gitlab/.rvm/bin/bootup_bundle</string>
<string>exec</string>
<string>unicorn</string>
<string>-c</string>
<string>/Users/gitlab/gitlab/config/unicorn.rb</string>
<string>-E</string>
<string>production</string>
</array>
<key>EnvironmentVariables</key>
<array>
<key>RAILS_ENV</key>
<string>production</string>
</array>
<key>WorkingDirectory</key>
<string>/Users/gitlab/gitlab</string>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>gitlab</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment