Skip to content

Instantly share code, notes, and snippets.

@joseluistorres
Created May 25, 2016 19:48
Show Gist options
  • Save joseluistorres/07194613ee8061cd8d1475ea197c36ab to your computer and use it in GitHub Desktop.
Save joseluistorres/07194613ee8061cd8d1475ea197c36ab to your computer and use it in GitHub Desktop.
run a rake from rails console
require 'rake'
MyRailsApp::Application.load_tasks # <-- MISSING LINE
Rake::Task['my_task'].invoke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment