Created
July 22, 2011 01:41
-
-
Save kcbraunschweig/1098693 to your computer and use it in GitHub Desktop.
chef and unicorn and nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just to get you started. | |
https://github.com/blog/517-unicorn | |
http://unicorn.bogomips.org/index.html | |
http://wiki.nginx.org/Configuration | |
http://blog.tomkersten.com/2010/11/14/nginx-unicorn-rvm-server-setup.html | |
http://nginx.org/en/docs/http/configuring_https_servers.html | |
http://nginx.org/en/docs/http/request_processing.html | |
https://github.com/merb/merb/wiki/HOWTO-Use-Unicorn | |
You'll need to create: | |
- nginx config | |
- api unicorn.rb | |
- webui unicorn.rb | |
- webui config.ru <- the api one works as provided but the webui doesn't | |
< Chef::Config.from_file(File.expand_path(File.dirname(__FILE__) + '/../features/data/config/server.rb')) | |
--- | |
> Chef::Config.from_file(File.join("/etc", "chef", "server.rb")) | |
Then I started the apps with: | |
RACK_ENV=production MERB_ENV=production unicorn -c /root/chef-server-api.unicorn.rb /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.0/config.ru -D | |
RACK_ENV=production MERB_ENV=production unicorn -c /root/chef-server-webui.unicorn.rb /root/chef-server-webui-0.10.0.config.ru -D | |
/opt/nginx/sbin/nginx -c /root/nginx.conf -p /opt/nginx/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment