Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use different configs for development and production
- Loading branch information
Showing
5 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,7 +1,5 @@ | |||
puts "Initializing IronWorker" | |||
IW_CLIENT = IronWorkerNG::Client.new | |||
puts "Creating worker from worker file" | puts "Creating worker from worker file" | ||
code_from_workerfile = IronWorkerNG::Code::Base.new(:workerfile => 'workers/simple_mailer_worker.worker') | code_from_workerfile = IronWorkerNG::Code::Base.new(:workerfile => 'workers/simple_mailer_worker.worker') | ||
puts "Uploading worker" | puts "Uploading worker" | ||
IW_CLIENT.codes.create(code_from_workerfile) | Rails.application.config.iw_client.codes.create(code_from_workerfile) | ||
puts "Worker uploaded" | puts "Worker uploaded" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters