Code Monkey home page Code Monkey logo

moonshine_god's Introduction

Moonshine_God

A plugin for Moonshine

Moonshine_God provides simple installation and configuration management for god. Just drop your god configs into config/god/*.god in your Rails application, add a couple lines to your Moonshine manifest, and deploy.

Available options:

  • log_level - One of debug, info, warn, error, or fatal. Default is 'warn'.
  • log_file - Path to log file. Default is /var/log/god.log.

Instructions

  • script/plugin install git://github.com/railsmachine/moonshine_god.git
  • Add god configuration files at config/god/*.god
  • Configure settings in the manifest if desired: configure( :god => { :log_level => 'info', :log_file => "#{configuration[:deploy_to]}/shared/log/god.log" } )
  • Include the plugin and recipe(s) you want to use in your Moonshine manifest. recipe :god
  • Add the :god role to server(s) in your capistrano deploy file(s) running god:

    config/deploy/staging.rb

    server 'staging.example.com', :god, :app, :web, :db, :primary => true

Unless otherwise specified, all content copyright © 2014, Rails Machine, LLC

moonshine_god's People

Contributors

jnewland avatar bryantraywick avatar technicalpickles avatar kplawver avatar leejones avatar shepbook avatar queso avatar sborsje avatar wfarr avatar

Stargazers

Angus H. avatar Lau avatar Dave Ungerer avatar  avatar Dreamcat4 avatar Jeff avatar Ingrid Alongi avatar Oleh Khomei avatar Kevin Faustino avatar Arpit J avatar Nelson Yee avatar Jonathan Rudenberg avatar Sean McCleary avatar Corey Reece avatar Pritesh avatar

Watchers

James Cloos avatar James Koss avatar Ryan avatar  avatar Nicolas avatar  avatar Adrian Atanasov avatar Jeff Dols avatar  avatar

moonshine_god's Issues

Restart recipe should use terminate instead of stop

Hello, In this morning when I tested a new feature in staging a experienced some problems with god after each deploy.

The problem happens because the default restart recipe call a god stop and this task only reload the god proccess and not his watched proccess. To fix this problem what I did was change the recipe to:

task :restart do
sudo 'god terminate'
sudo 'start god'
sleep 5
end

After that everything works.

Ruby 1.9 and latest moonshine cause errors

I get this error:

Uncaught exception: Puppet::Error: Parameter alias failed: /etc/logrotate.d/varloggodlog.conf can not create alias logrotate_varloggodlog: object already exists

I am only able to resolve it by removing the logrotate command from the moonshine_god recipe (not needed in my case because I put ithe logs under shared/log)

Ubuntu >= 9.04 changed config dir

Ubuntu >= 9.04 uses /etc/init instead of /etc/event.d for upstart config files, as well as slightly different format. Not sure how best to fix the plugin to do the right thing depending on the version (potentially, both files could be written), but I see someone forked and made a version that works only on 9.04 and up. Logging this just in case someone else encounters the same issue - the fork is varyform/moonshine_god.

god is not running after first deploy of moonshine_god

The first deploy needs to ensure that god is actually running, or else other cap tasks, like the restarting of god, will fail. Basically, it's just this:

service 'god', :ensure => :running, :require => [list_of_required_stuff]

It actually looks like god is manually restarted on this line, but it must not be working effectively. Consider replacing this zanyness with the plain old service call.

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.