Giter Site home page Giter Site logo

boram / opsworks-sidekiq Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brainyatom/opsworks-sidekiq

1.0 1.0 0.0 174 KB

Opsworks sidekiq cookbook for Ubuntu and Rails or non-rails sidekiq deploys

License: MIT License

Ruby 54.46% HTML 45.54%

opsworks-sidekiq's Introduction

opsworks-sidekiq

Opsworks sidekiq cookbook for Ubuntu and Rails or non-rails sidekiq deploys

Installation instructions

  1. Make sure you have Redis installed. This cookbook seems decent: https://github.com/brianbianco/redisio

  2. Add this cookbook to your list of Custom Cookbooks

  3. Add the deploy recipe in this cookbook to your Application's Deploy custom recipe. This should be place AFTER your application is deployed to ensure Sidekiq uses the new code checked out.

  4. Configure your sidekiq custom JSON to specify Sidekiq should be deployed with this app:

Supported Options

Currently supported options for the Sidekiq deploy recipe are:

  • start_command

The command to start sidekiq. This will run relative to the root of the current release path.

Defaults to:

bundle exec sidekiq -e production -C config/sidekiq.yml -r ./config/boot.rb 2>&1 >> log/sidekiq.log

Sample Chef JSON configuration

Here is an example Custom JSON which overrides overrides the start_command to set the sidekiq environment to staging:

{
  "deploy": {
    "YOURAPPNAME": {
      "sidekiq": {
        "start_command": "bundle exec sidekiq -e staging -C config/sidekiq.yml -r ./config/boot.rb >2&1 >> log/sidekiq.log"
      }
    }
  }
}

Here is the minimum deploy config required:

{
  "deploy": {
    "YOURAPPNAME": {
      "sidekiq": {}
    }
  }
}

Environment variables

All Opsworks environment_variables defined within your application will be exposed to the Sidekiq process via the upstart script.

opsworks-sidekiq's People

Stargazers

 avatar

Watchers

 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.