generators/vulcanize/templates/mongrel/config/rubber/deploy-mongrel.rb in sml-rubber-0.9.6 vs generators/vulcanize/templates/mongrel/config/rubber/deploy-mongrel.rb in sml-rubber-0.9.7
- old
+ new
@@ -9,10 +9,10 @@
task :custom_install, :roles => :app do
# Setup system to restart mongrel_cluster on reboot
rubber.sudo_script 'install_app', <<-ENDSCRIPT
mkdir -p /etc/mongrel_cluster
- rm -f /etc/mongrel_cluster/#{application}-#{rails_env}.yml && ln -s /mnt/#{application}-#{rails_env}/current/config/mongrel_cluster.yml /etc/mongrel_cluster/#{application}-#{rails_env}.yml
+ rm -f /etc/mongrel_cluster/#{application}-#{RUBBER_ENV}.yml && ln -s /mnt/#{application}-#{RUBBER_ENV}/current/config/mongrel_cluster.yml /etc/mongrel_cluster/#{application}-#{RUBBER_ENV}.yml
find /usr/lib/ruby/gems -path "*/resources/mongrel_cluster" -exec cp {} /etc/init.d/ \\;
chmod +x /etc/init.d/mongrel_cluster
update-rc.d -f mongrel_cluster remove
update-rc.d mongrel_cluster defaults 99 00
ENDSCRIPT