GithubHelp home page GithubHelp logo

wbotelhos / chef-unicorn Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 2.0 22 KB

Unicorn Cookbook for Chef

Home Page: https://supermarket.chef.io/cookbooks/chef-unicorn

License: MIT License

Ruby 77.81% HTML 22.19%
unicorn chef chef-cookbook cookbook

chef-unicorn's Introduction

Unicorn

Cookbook Patreon

Installs and configure Unicorn server.

Requirements

Platforms

  • Ubuntu 15.04+ (since we use Systemd)

Config

Attribute Default
default['chef-unicorn']['config']['backlog'] 64
default['chef-unicorn']['config']['check_client_connection'] false
default['chef-unicorn']['config']['listen'] nil
default['chef-unicorn']['config']['pid'] nil
default['chef-unicorn']['config']['preload_app'] true
default['chef-unicorn']['config']['stderr_path'] nil
default['chef-unicorn']['config']['stdout_path'] nil
default['chef-unicorn']['config']['timeout'] 60
default['chef-unicorn']['config']['worker_processes'] 4
default['chef-unicorn']['config']['working_directory'] nil

Service

|-------------------------------------------------------|---------------------| |Attribute |Default | |default['chef-unicorn']['config']['after_fork'] |... | |default['chef-unicorn']['config']['before_fork'] |... | |default['chef-unicorn']['service']['bundle_gemfile'] |nil | |default['chef-unicorn']['service']['bundle'] |'/usr/bin/bundle' | |default['chef-unicorn']['service']['config'] |nil | |default['chef-unicorn']['service']['environment'] |'production' | |default['chef-unicorn']['service']['gem_home'] |'/usr/local/ruby/gem'| |default['chef-unicorn']['service']['locale'] |'en_US.UTF-8' | |default['chef-unicorn']['service']['name'] |'unicorn' | |default['chef-unicorn']['service']['pidfile'] |nil | |default['chef-unicorn']['service']['user'] |'deploy' | |default['chef-unicorn']['service']['working_directory']|'/' |

Usage

Berkfile

source 'https://supermarket.chef.io'

cookbook 'chef-unicorn'

Node

The following nodes is an example of the minimal needed to run correctly this cookbook:

{
  "chef-unicorn": {
    "config": {
      "config_file":       "/var/www/app/shared/config/unicorn.rb",
      "listen":            "/var/www/app/shared/run/unicorn/unicorn.sock",
      "pid":               "/var/www/app/shared/run/unicorn/unicorn.pid",
      "stderr_path":       "/var/www/app/shared/log/unicorn/error.log",
      "stdout_path":       "/var/www/app/shared/log/unicorn/out.log",
      "working_directory": "/var/www/app/current"
    },

    "service": {
      "bundle_gemfile": "/var/www/app/current/Gemfile",
      "config":         "/var/www/app/shared/config/unicorn.rb",
      "pidfile":        "/var/www/app/shared/run/unicorn/unicorn.pid"
    }
  },

  "run_list": [
    "recipe[chef-unicorn]"
  ]
}

Unicorn documentation

https://bogomips.org/unicorn

References

https://github.com/defunkt/unicorn/blob/master/examples/unicorn.conf.rb

Love it!

Via PayPal or Patreon. Thanks! (:

chef-unicorn's People

Contributors

wbotelhos avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

geome r4do

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.