mirror of
				https://github.com/StefBuwalda/WebTech.git
				synced 2025-10-30 19:29:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			263 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			263 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/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
 | |
| flask db init
 | |
| 
 | |
| flask db migrate -m "Autogenerated migration"
 | |
| flask db upgrade
 | |
| 
 | |
| exec "$@"
 |