inital commit
This commit is contained in:
17
sendtoproduction/.custom_commands.sh
Normal file
17
sendtoproduction/.custom_commands.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
# copies the project directory from 100 server to 98 and 114
|
||||
function deploy() {
|
||||
#chown root:root /var/www/html/ -R;
|
||||
#find /var/www/html/ -type d -exec chmod 777 {} \;
|
||||
|
||||
|
||||
|
||||
rsync -avzhe ssh --owner --group --progress --recursive --files-from="include.txt" --exclude-from="exclude.txt" "/var/www/html/" "root@45.55.43.211:/var/www/html/"
|
||||
|
||||
pssh -A -i -H "45.55.43.211" -l root 'chown -R www-data:www-data /var/www/html && chmod -R 1777 /var/www/html/webroot && chmod -R 1777 /var/www/html/webroot/*'
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user