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
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-05 08:23:34 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# build the site
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-06 19:14:30 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								hugo
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-05 08:23:34 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-28 13:52:19 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# push the files to the webserver
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# scp -rp * root@boethius:/hosting/sites/gmgauthier.com
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								rsync -avh -e ssh ./public/* root@boethius:/hosting/sites/gmgauthier.com
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-05 08:23:34 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								echo "chown -R www-data:www-data /hosting/sites/gmgauthier.com" | ssh root@boethius /bin/bash
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-27 23:08:43 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								echo "ls -lA /hosting/sites/gmgauthier.com" | ssh root@boethius /bin/bash
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-05 08:23:34 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# remove the old build
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-28 13:52:19 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# rm -R public
							 |