- Configure this project
- Create a
/config/config.json& /config/config_queue.rb file - Copy and modify contents of
config/example_config.jsontoconfig/config.json - Copy and modify contents of
config/example_config_queue.rbtoconfig/config_queue.rb.json
- Test this worker
$ bundle install --standalone- creates a bundle of all needed gems within your repo
$ ruby soa_worker.rb
- Upload your worker
$ zip -r iron.zip .- creates a zip of all files in this folder
$ iron worker upload --zip iron.zip --name iron iron/images:ruby-2.1 ruby soa_worker.rb- creates a zip of your entire repo
- Run your worker remotely
$ iron worker queue --payload-file ./config/config.json --wait iron- runs your worker on iron.io