 60557d31fd
			
		
	
	
		60557d31fd
		
			
		
	
	
	
	
		
			
			Prisma is a dev dependency in the main project. However, it is needed in the image so we can run the migrations before starting the server up. This installs it globally in the image since it won't be installed using the project's `package.json`. Signed-off-by: Alex Sears <me@alexsears.com>
		
			
				
	
	
		
			6 lines
		
	
	
	
		
			175 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
	
		
			175 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/sh
 | |
| set -x
 | |
| 
 | |
| /calcom/scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "database is up"
 | |
| npx prisma migrate deploy --schema /calcom/packages/prisma/schema.prisma
 | |
| yarn start
 |