osp-deploy 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/osp_deploy/rails_deployer.rb +3 -3
- data/lib/osp_deploy/version.rb +1 -1
- metadata +1 -1
@@ -313,18 +313,18 @@ EOS
|
|
313
313
|
puma_config = []
|
314
314
|
end
|
315
315
|
# always set rails environment
|
316
|
-
puma_options[:environment] = @deployment_config['environment']
|
316
|
+
puma_options[:environment] = "'#{@deployment_config['environment']}'"
|
317
317
|
puma_options.each do |name, value|
|
318
318
|
ix = puma_config.index{|l| l =~ /^#{name}\s+/}
|
319
|
-
cfg_line = "#{name}
|
319
|
+
cfg_line = "#{name} #{value}"
|
320
320
|
if ix
|
321
321
|
puma_config[ix] = cfg_line
|
322
322
|
else
|
323
323
|
puma_config << cfg_line
|
324
324
|
end
|
325
325
|
end
|
326
|
-
conf_file = Tempfile.new(['osp-deploy-puma', '.rb'])
|
327
326
|
conf_content = puma_config.join("\n")
|
327
|
+
conf_file = Tempfile.new(['osp-deploy-puma', '.rb'])
|
328
328
|
conf_file.write conf_content
|
329
329
|
conf_file.close
|
330
330
|
deployment_file = "#{file_dir}/config/puma.rb"
|
data/lib/osp_deploy/version.rb
CHANGED