Skip to content

Instantly share code, notes, and snippets.

@laurenhavertz
Last active May 6, 2019 01:47
Show Gist options
  • Select an option

  • Save laurenhavertz/6126895 to your computer and use it in GitHub Desktop.

Select an option

Save laurenhavertz/6126895 to your computer and use it in GitHub Desktop.
RUBY GEMS

reference :https://github.com/collectiveidea/delayed_job

  1. download gem from the terminal gem list delayed
  2. add gem to gemfile `gem 'delayed_job_active_record'
  3. save file
  4. in the terminal bundle install
  5. in the terminal rails g delayed_job:active_record
    • creates migrations and tables
  6. in the terminal rake db:migrate
  7. in the terminal touch Procfile
  8. in the Procfile:
    worker:  bundle exec rake jobs:work ````
    * Heroku specific with the gems
    
  9. in the terminal foreman start
    • automatically runs off of port5000
  10. in the "reset password" method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment