Added project initializability check in docker-entrypoint.sh
This commit is contained in:
		
							parent
							
								
									ab9039c840
								
							
						
					
					
						commit
						6707f3d1c0
					
				| @ -26,6 +26,10 @@ if [ "$1" = 'frankenphp' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then | ||||
| 		composer install --prefer-dist --no-progress --no-interaction | ||||
| 	fi | ||||
| 
 | ||||
| 	# Display information about the current project | ||||
| 	# Or about an error in project initialization | ||||
| 	php bin/console -V | ||||
| 
 | ||||
| 	if grep -q ^DATABASE_URL= .env; then | ||||
| 		echo 'Waiting for database to be ready...' | ||||
| 		ATTEMPTS_LEFT_TO_REACH_DATABASE=60 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Stanislau Kviatkouski
						Stanislau Kviatkouski