Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jcap49
Last active January 1, 2016 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcap49/2da08b784520403cf1e1 to your computer and use it in GitHub Desktop.
Save jcap49/2da08b784520403cf1e1 to your computer and use it in GitHub Desktop.
# master.worker located in ./workers
runtime "ruby"
# name the worker
name "Master"
# include all the gems
gem "iron_worker_ng"
gem 'activerecord'
gem 'activemodel'
gem 'pg'
gem 'twilio-ruby'
# make sure pg is good to go
full_remote_build true
# include iron.io and twilio settings
file "../config/application.yml"
# include text message & user model
dir "../app/models"
file "../app/models/text_message.rb"
file "../app/models/user.rb"
# worker file to be executed
exec "master.rb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment