updating post_deploy script
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		| @@ -1,8 +1,8 @@ | |||||||
| APP_NAME=Laravel | APP_NAME=EliteRegistry | ||||||
| APP_ENV=local | APP_ENV=local | ||||||
| APP_KEY= | APP_KEY= | ||||||
| APP_DEBUG=true | APP_DEBUG=true | ||||||
| APP_URL=http://localhost | APP_URL=https://eliteregistry | ||||||
|  |  | ||||||
| LOG_CHANNEL=stack | LOG_CHANNEL=stack | ||||||
| LOG_LEVEL=debug | LOG_LEVEL=debug | ||||||
|   | |||||||
| @@ -34,6 +34,7 @@ http { | |||||||
|         	include fastcgi_params; |         	include fastcgi_params; | ||||||
|         	fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |         	fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||||||
|         	fastcgi_param PATH_INFO $fastcgi_path_info; |         	fastcgi_param PATH_INFO $fastcgi_path_info; | ||||||
|  |         	fastcgi_param HTTPS on; | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		location / { | 		location / { | ||||||
|   | |||||||
| @@ -3,18 +3,29 @@ | |||||||
| # update application cache | # update application cache | ||||||
| php artisan optimize | php artisan optimize | ||||||
|  |  | ||||||
| if [[ ! -f /data/database.sqlite ]]; then |  | ||||||
|   echo "No database found. Creating." |  | ||||||
|   touch /data/database.sqlite |  | ||||||
| fi |  | ||||||
|  |  | ||||||
| # perform DB migrations | # perform DB migrations | ||||||
|  |  | ||||||
| if [[ ! -f ./database/database.sqlite ]]; then | if [[ ! -f ./database/database.sqlite ]]; then | ||||||
|   echo "No link to database. Linking database." |     if [[ ! -f /data/database.sqlite ]]; then | ||||||
|   ln -s /data/database.sqlite ./database/database.sqlite |         echo "No database found. Creating." | ||||||
|  |         touch /data/database.sqlite | ||||||
|  |     fi | ||||||
|  |     echo "No link to database. Linking database." | ||||||
|  |     ln -s /data/database.sqlite ./database/database.sqlite | ||||||
| fi | fi | ||||||
|  |  | ||||||
|  | if [[ ! -f ./.env ]]; then | ||||||
|  |     if [[ ! -f /data/.env ]]; then | ||||||
|  |         echo "No enviroment found. Creating." | ||||||
|  |         cp .env.example /data/.env | ||||||
|  |     fi | ||||||
|  |     echo "No link to environment. Linking environment." | ||||||
|  |     ln -s /data/.env ./.env | ||||||
|  |     php artisan key:generate | ||||||
|  | fi | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | fi | ||||||
|  |  | ||||||
| php artisan migrate | php artisan migrate | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user