mirror of
				https://github.com/StefBuwalda/WebTech.git
				synced 2025-10-31 03:39:59 +00:00 
			
		
		
		
	Renamed sh script
This commit is contained in:
		
							
								
								
									
										11
									
								
								docker-entrypoint.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								docker-entrypoint.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| #!/bin/bash | ||||
| # Wait for DB to be ready (optional step) | ||||
| # ./wait-for-it.sh db:5432 --timeout=30 -- echo "DB is up" | ||||
|  | ||||
| # Only run flask db init if migrations folder doesn't exist | ||||
| if [ ! -d "migrations" ]; then | ||||
|   flask db init | ||||
| fi | ||||
|  | ||||
| flask db migrate -m "Autogenerated migration" | ||||
| flask db upgrade | ||||
		Reference in New Issue
	
	Block a user