Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (18 sloc) 633 Bytes
Capistrano::Configuration.instance(:must_exist).load do
namespace :php do
namespace :config do
desc "Generate remote application config"
task :default, :roles => :app do
php.config.nginx
end
desc "Generate remote Nginx vhost"
task :nginx, :roles => :app do
upload_from_erb "#{nginx_dir}/vhosts/#{application}_#{stage}.conf", binding, :folder => 'php', :name => 'nginx.vhost'
end
desc "Destroy remote Nginx vhost"
task :destroy, :roles => :app do
sudo "rm -f #{nginx_dir}/vhosts/#{application}_#{stage}.conf"
end
end
end
end