#!ruby # Run like this: # run /var/app/current/script/trigger ... # Go here to start from app's root directory. Dir.chdir File.expand_path(File.dirname(__FILE__) + "/..") # If using Bundler, you might need to uncomment next two lines #require "bundler" #Bundler.setup require "resque" Resque::Job.create *ARGV