Skip to content

Commit 85885b9

Browse files
committed
Add a default SYSLOG_APPLICATION_NAME
1 parent dd44996 commit 85885b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/tasks/eb_fast_deploy.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,13 @@ def set_vars
187187

188188
def rails_options
189189
opts = []
190+
#Default SYSLOG_APPLICATION_NAME
191+
opts << {:namespace => "aws:elasticbeanstalk:application:environment", :option_name =>"SYSLOG_APPLICATION_NAME", :value=>"#{ENV['APP_NAME'].gsub(' ', '')}_#{ENV['ENVIRONMENT'].gsub(' ', '')}"} unless ENV['SYSLOG_APPLICATION_NAME']
192+
190193
@eb_ruby_container_options.each do |k,v|
191194
opts << {:namespace => "aws:elasticbeanstalk:application:environment", :option_name =>k, :value=>v}
192195
end
196+
193197
opts
194198
end
195199

0 commit comments

Comments
 (0)