deploy_revision "website" do
user app['owner']
group app['group']
deploy_to ::File.join('/home/kbrw',#{app[:id]})
repository app['repository']
revision 'master'
template "#{release_path}/app/config/parameters.yml" do
source "#{release_path}/app/config/parameters.yml.erb"
variables(
:specificConfiguration => app['specificConfiguration']
)
end
template "#{node[:apache][:dir]}/sites-available/website.conf" do
source "#{release_path}/app/Resources/apache/website.conf.erb"
owner "root"
group "root"
variables(
:docroot => ::File.join(app['deploy_to'],'current/web'),
)
done
done
service "apache2" do action :restart; end
include_recipe "php"
include_recipe "apache"
deploy_revision "website" do
user app['owner']
group app['group']
deploy_to ::File.join('/home/kbrw',#{app[:id]})
repository app['repository']
revision 'master'
template "#{release_path}/app/config/parameters.yml" do
source "#{release_path}/app/config/parameters.yml.erb"
variables(
:specificConfiguration => app['specificConfiguration']
)
end
template "#{node[:apache][:dir]}/sites-available/website.conf" do
source "#{release_path}/app/Resources/apache/website.conf.erb"
owner "root"
group "root"
variables(
:docroot => ::File.join(app['deploy_to'],'current/web'),
)
done
done
service "apache2" do action :restart; end
V1
V1