Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
breezeight committed Nov 21, 2013
2 parents 6d5e304 + d6f44e4 commit c9e890c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/tasks/eb_fast_deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,19 +273,20 @@ def print_env
set_vars
if @eb_ruby_container_options["WHENEVER_ALL"] == "true"
template=<<-EOF
commands:
01whenever:
command: bundle exec whenever --set environment=$RACK_ENV -u webapp --update-crontab >/tmp/whenever_command.log 2>&1
container_commands:
02whenever:
command: bundle exec whenever --set environment=$RAILS_ENV -u webapp --update-crontab >/tmp/whenever_command.log 2>&1
leader_only: false
EOF
output_file = ".ebextensions/whenever_all.config"
EOF
output_file = ".ebextensions/whenever.config"
dir = File.dirname output_file
unless File.directory?(dir)
FileUtils.mkdir_p(dir)
end
File.delete output_file if File.exists? output_file
output = File.open(File.join(Rails.root, output_file), "w")
output << ERB.new( template).result(binding)
output.close
end
end

Expand Down

0 comments on commit c9e890c

Please sign in to comment.