Fixing logging and changing post deploy
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build was killed
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/push Build was killed
				
			This commit is contained in:
		@@ -1,5 +1,8 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
# Create data dir if it doesn't exist
 | 
			
		||||
mkdir -p /data
 | 
			
		||||
 | 
			
		||||
# update application cache
 | 
			
		||||
php artisan optimize
 | 
			
		||||
 | 
			
		||||
@@ -27,6 +30,9 @@ fi
 | 
			
		||||
 | 
			
		||||
php artisan migrate
 | 
			
		||||
 | 
			
		||||
# own the data folder to www-data
 | 
			
		||||
chown -R www-data: /data
 | 
			
		||||
 | 
			
		||||
# start the application
 | 
			
		||||
 | 
			
		||||
php-fpm -D &&  nginx -g "daemon off;"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user