lib/ms_deploy/recipes/nginx.rb in ms_deploy-0.0.6 vs lib/ms_deploy/recipes/nginx.rb in ms_deploy-0.0.7
- old
+ new
@@ -28,10 +28,10 @@
run "sudo /etc/init.d/nginx restart"
end
task :install do
template_path = File.expand_path('../../templates/vhost.erb', __FILE__)
- vars = {'application'=> application, 'project_root' => deploy_to + '/current', 'domain' => domain}
+ vars = {'application'=> application, 'project_root' => deploy_to + '/current', 'domain' => vhost_domain}
config_path = "#{shared_path}/config/#{application}_vhost.conf"
put(render_erb_template(template_path, vars), config_path)
sudo "rm -f /etc/nginx/sites-enabled/#{application}.conf"
sudo "ln -s #{config_path} /etc/nginx/sites-enabled/#{application}.conf"