use rsync for publishing instead of scp
This commit is contained in:
		
							parent
							
								
									b2769be8ec
								
							
						
					
					
						commit
						a574ca5709
					
				@ -6,12 +6,11 @@ git add .;git commit -m"$@";git push -u origin master
 | 
				
			|||||||
# build the site
 | 
					# build the site
 | 
				
			||||||
hugo
 | 
					hugo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# push the files
 | 
					# push the files to the webserver
 | 
				
			||||||
cd public
 | 
					# scp -rp * root@boethius:/hosting/sites/gmgauthier.com
 | 
				
			||||||
scp -rp * root@boethius:/hosting/sites/gmgauthier.com
 | 
					rsync -avh -e ssh ./public/* root@boethius:/hosting/sites/gmgauthier.com
 | 
				
			||||||
echo "chown -R www-data:www-data /hosting/sites/gmgauthier.com" | ssh root@boethius /bin/bash
 | 
					echo "chown -R www-data:www-data /hosting/sites/gmgauthier.com" | ssh root@boethius /bin/bash
 | 
				
			||||||
echo "ls -lA /hosting/sites/gmgauthier.com" | ssh root@boethius /bin/bash
 | 
					echo "ls -lA /hosting/sites/gmgauthier.com" | ssh root@boethius /bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# remove the old build
 | 
					# remove the old build
 | 
				
			||||||
cd ..
 | 
					# rm -R public
 | 
				
			||||||
rm -R public
 | 
					 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user