Update publish action to use server block webroot

This commit is contained in:
The Magician 2023-12-05 15:48:55 +00:00
parent a53509b5a4
commit 9c8518264c
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
serve:
python -m http.server
publish:
rsync --delete --recursive * root@themagician.cc:/usr/share/nginx/html/www/
ssh root@themagician.cc 'chown -R www:www /usr/share/nginx/html/www/'
rsync --delete --recursive * root@themagician.cc:/var/www/themagician.cc/html/
ssh root@themagician.cc 'chown -R www:www /var/www/themagician.cc/html/'
ssh root@themagician.cc 'chcon -vR system_u:object_r:httpd_sys_content_t:s0 /var/www/themagician.cc/'