Git Product home page Git Product logo

spree_delayed_job's Introduction

Spree delayed job

The extension add a tab to the admin page to run jobs and display running jobs.
It’s based on the delayed_job and delayed_job_admin

Installation

To install, add delayed_job and spree_delayed_job to your Gemfile and run `bundle install`:

gem 'delayed_job_active_record'
gem 'spree_delayed_job'

After spree_delayed_job is installed, run the following commands: (see delayed_job for detailed info)

$ rails generate delayed_job:active_record
$ rake db:migrate
$ script/delayed_job start

Configuration

To add your jobs simply override (using Deface) or replace the app/views/spree/admin/shared/_spree_delayed_job.html.erb:

<!-- some sample tasks --> 
<% content_for :sidebar do %> 
  <div class="box"> 
    <h1>Run Jobs</h1> 
    <ul class="sidebar" data-hook="spree_delayed_jobs"> 
      <li><%= button_to "rake assets:clear", :action => "create" , :job => "assets:clear" %></li> 
      <li><%= button_to "rake assets:precompile", :action => "create" , :job => "assets:precompile" %></li> 
    </ul> 
  </div> 
<% end %> 

PLEASE NOTE: the gem it’s still under development and with this version you can run only rake tasks.

This project is released under MIT-LICENSE.

spree_delayed_job's People

Contributors

priviterag avatar

Watchers

James Cloos avatar Matt Dundas 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.