2021-04-05 08:23:34 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#!/usr/bin/env sh
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-06 18:57:16 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# commit and push...
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-28 00:10:43 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								git add .;git commit -m"$@";git push -u origin master
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-06 18:57:16 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2022-06-12 16:57:12 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								rm -rf public                                  # destroy the old build first 
							 | 
						
					
						
							
								
									
										
										
										
											2021-12-28 13:59:58 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								hugo                                           # build the new site
							 | 
						
					
						
							
								
									
										
										
										
											2021-12-28 14:01:10 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								sudo chown -R gmgauthier:www-data ./public/*   # set the ownership before transfer
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-05 08:23:34 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2024-02-14 19:33:10 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								rsync --super -avh -e ssh ./public/* gmgauthier@socrates:/var/www/gmgauthier.com
							 | 
						
					
						
							
								
									
										
										
										
											2022-06-12 16:57:12 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# echo "ls -lA /hosting/sites/gmgauthier.com" | ssh gmgauthier@boethius /bin/bash
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-05 08:23:34 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 |