1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Gregory Eremin 516240efc3
Rename to mina-reboot
8 years ago
lib/mina It works 8 years ago
.gitignore It works 8 years ago
Gemfile It works 8 years ago
LICENSE.txt It works 8 years ago
README.md Rename to mina-reboot 8 years ago
Rakefile It works 8 years ago
mina-reboot.gemspec Rename to mina-reboot 8 years ago

README.md

Mina Reboot

Generates cron @reboot task every time you deploy with Mina, so your app will start automatically in case of server reboot.

Installation

Add this line to your application's Gemfile:

gem 'mina-reboot'

Usage

Add these lines to your application's deploy config:

require 'mina/reboot'

set :on_reboot, -> {
  # Tasks needed to start application
  invoke 'unicorn:start'
  invoke 'sidekiq:start'
}

task :deploy => :environment do
  # ...
  # Deploy commands
  # ...
  invoke 'reboot:save_startup_script'
end

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request