Giter Site home page Giter Site logo

happyfish / chef-rails_application Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devops-israel/chef-rails_application

0.0 2.0 0.0 59 KB

A Chef cookbook that installs a Rails application and can be fully customized using attributes.

License: BSD 3-Clause "New" or "Revised" License

Ruby 100.00%

chef-rails_application's Introduction

rails_application Cookbook

This cookbooks installs the server-side Rails application. Unlike the official OpsCode cookbooks, this cookbook has all of the possible tweaks externalized in the form of attributes - it was intended that this cookbook is used by a wrapper cookbook that provides the attributes which configure the rails application per the requirements of the actual application.

This cookbook replaces the unicorn process supervisor to be upstart instead of runit, it means that it will work on Ubuntu systems, later versions might allow customizing the process supervisor as well.

Requirements

Tested on Ubuntu 12.04 and depends on several OpsCode official cookbooks that actually do the majority of the work.

packages

This cookbook depends on several OpsCode cookbooks, namely -
  • git
  • ruby
  • nginx
  • unicorn
  • application
  • application_ruby
  • application_nginx
for the rails_application::database_credentials cookbook, you also need -
  • database

Several of the above required minor modifications, all of these have pull requests and tickets with OpsCode, but until these get accepted, forks that include the modifications are available here -

application_nginx cookbook
application_ruby cookbook (no pull requests at this time)
OpsCode cookbooks are available at -

Attributes

rails_application::default

Key Type Description Default
rails/ruby/version String which ruby version to use, see: ruby cookbook 1.9.1
rails/app/name String how to call the application rails_app
rails/app/path String where the application is deployed to /var/www/project/{{rails/app/name}}
rails/app/environment String rails/rack environment name production
rails/owner String user name to own files and processes deploy
rails/group String group name to own files and processes deploy
rails/packages Array additional packages that need to be installed for the application to work [ ]
rails/gems Array additional system-wide gems that need to be installed for the application to work [ ]

Usage

rails_application::default

Just include rails_application in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[rails_application]"
  ]
}

Contributing

This cookbook is still a work in progress, you are welcome to help by contributing fixes, documentation and tests.

e.g.

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write you change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

License

See LICENSE for full details.

Authors:
Contributors:
  • Daniel github.com/emirikol

chef-rails_application's People

Contributors

kesor avatar kensodev avatar happyfish avatar emirikol avatar

Watchers

 avatar James Cloos avatar

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.