GithubHelp home page GithubHelp logo

lainventoria / capistrano3-delayed-job Goto Github PK

View Code? Open in Web Editor NEW

This project forked from goooseman/capistrano3-delayed-job

0.0 7.0 0.0 82 KB

A task for Capistrano v3 to manage delayed_job

License: MIT License

Ruby 100.00%

capistrano3-delayed-job's Introduction

capistrano3-delayed-job

This Capistrano (v3) task ask for the delayedjob management. To use it be sure that you have

gem "daemons"
gem "delayed_job" or gem "delayed_job_active_record" or any other

You can use

delayed_job:start
delayed_job:stop
delayed_job:restart

after installation.

Rails 3 users - make sure you set :delayed_job_folder, 'scripts' in your config/deploy.rb. Rails 4 users - no need to worry, it uses 'bin' by default.

You can set :delayed_job_args, '' and set :delayed_job_server_role in ypur config/deploy.rb

You can use it like this in your deploy.rb:

after 'deploy:publishing', 'deploy:restart'
namespace :deploy do
  task :restart do
    invoke 'delayed_job:restart'
  end
end

Installation

Add this line to your application's Gemfile:

group :development do
	gem 'capistrano3-delayed-job'
end

And then execute:

$ bundle

And then add require 'capistrano3/delayed-job' to your Capfile

My other works

Take a look at my capistrano3-ubuntu-server-prepare (it can install Nginx, PostgreSQL, Redis, RVM, Rails, Bundler, Imagemagick and do some other helpfull things to prepare your blank Ubuntu server for the first deploy) and capistrano3-git-push (automated git add, commit, push before each deploy) Capistrano (v3) gems.

capistrano3-delayed-job's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.