File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -273,19 +273,20 @@ def print_env
273273 set_vars
274274 if @eb_ruby_container_options [ "WHENEVER_ALL" ] == "true"
275275 template = <<-EOF
276- commands :
277- 01whenever :
278- command: bundle exec whenever --set environment=$RACK_ENV -u webapp --update-crontab >/tmp/whenever_command.log 2>&1
276+ container_commands :
277+ 02whenever :
278+ command: bundle exec whenever --set environment=$RAILS_ENV -u webapp --update-crontab >/tmp/whenever_command.log 2>&1
279279 leader_only: false
280- EOF
281- output_file = ".ebextensions/whenever_all .config"
280+ EOF
281+ output_file = ".ebextensions/whenever .config"
282282 dir = File . dirname output_file
283283 unless File . directory? ( dir )
284284 FileUtils . mkdir_p ( dir )
285285 end
286286 File . delete output_file if File . exists? output_file
287287 output = File . open ( File . join ( Rails . root , output_file ) , "w" )
288288 output << ERB . new ( template ) . result ( binding )
289+ output . close
289290 end
290291 end
291292
You can’t perform that action at this time.
0 commit comments