added git module & ignore, added deploy.sh
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
\.vscode/*
 | 
			
		||||
							
								
								
									
										3
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
[submodule "src/web/profiles/d8-starterkit-profile"]
 | 
			
		||||
	path = src/web/profiles/d8-starterkit-profile
 | 
			
		||||
	url = https://figureslibres.io/gogs/bachir/d8-starterkit-profile.git
 | 
			
		||||
							
								
								
									
										26
									
								
								deploy.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										26
									
								
								deploy.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
echo "updating drupal 9"
 | 
			
		||||
echo "Switching to project docroot."
 | 
			
		||||
cd ./src
 | 
			
		||||
echo ""
 | 
			
		||||
echo "Pulling down latest code."
 | 
			
		||||
git pull --ff-only origin prod
 | 
			
		||||
git submodule update --recursive --checkout
 | 
			
		||||
echo ""
 | 
			
		||||
echo "Clearing drush caches."
 | 
			
		||||
drush cache-clear drush
 | 
			
		||||
echo ""
 | 
			
		||||
echo "Composer install."
 | 
			
		||||
composer install --no-dev
 | 
			
		||||
echo ""
 | 
			
		||||
echo "Running database updates."
 | 
			
		||||
drush updb -y
 | 
			
		||||
echo ""
 | 
			
		||||
echo "Importing configuration."
 | 
			
		||||
drush config-import -y
 | 
			
		||||
echo ""
 | 
			
		||||
echo "Clearing caches."
 | 
			
		||||
drush cr
 | 
			
		||||
echo ""
 | 
			
		||||
echo "Deployment complete."
 | 
			
		||||
		Reference in New Issue
	
	Block a user