Execute deploy scripts for `nginx`.
This commit is contained in:
parent
f55682e5c3
commit
1701922c91
|
@ -46,7 +46,17 @@ end
|
||||||
git '/home/webadm/repo/nginx-config' do
|
git '/home/webadm/repo/nginx-config' do
|
||||||
user 'webadm'
|
user 'webadm'
|
||||||
repository 'https://gitea.kazu634.com/kazu634/nginx-config.git'
|
repository 'https://gitea.kazu634.com/kazu634/nginx-config.git'
|
||||||
|
|
||||||
not_if 'test -e /home/webadm/repo/nginx-config'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
execute '/home/webadm/repo/nginx-config/deploy.sh' do
|
||||||
|
user 'root'
|
||||||
|
cwd '/home/webadm/repo/nginx-config/'
|
||||||
|
end
|
||||||
|
|
||||||
|
service 'consul-template' do
|
||||||
|
action :restart
|
||||||
|
end
|
||||||
|
|
||||||
|
service 'nginx' do
|
||||||
|
action :restart
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in New Issue