Fix/post deploy migrations (#2385)
* Runs db migrations post-deploy * Deploy fixes
This commit is contained in:
		
							parent
							
								
									d76b9b0d01
								
							
						
					
					
						commit
						6932d3600e
					
				
					 2 changed files with 12 additions and 3 deletions
				
			
		| 
						 | 
					@ -106,7 +106,7 @@ export const getStaticProps = async (ctx: GetStaticPropsContext) => {
 | 
				
			||||||
    /* If the app doesn't have a README we fallback to the packagfe description */
 | 
					    /* If the app doesn't have a README we fallback to the packagfe description */
 | 
				
			||||||
    source = fs.readFileSync(postFilePath).toString();
 | 
					    source = fs.readFileSync(postFilePath).toString();
 | 
				
			||||||
  } catch (error) {
 | 
					  } catch (error) {
 | 
				
			||||||
    console.log("error", error);
 | 
					    console.log(`No README.mdx provided for: ${appDirname}`);
 | 
				
			||||||
    source = singleApp.description;
 | 
					    source = singleApp.description;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										13
									
								
								turbo.json
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								turbo.json
									
									
									
									
									
								
							| 
						 | 
					@ -73,7 +73,16 @@
 | 
				
			||||||
      "dependsOn": ["@calcom/prisma#db-deploy"]
 | 
					      "dependsOn": ["@calcom/prisma#db-deploy"]
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "@calcom/website#build": {
 | 
					    "@calcom/website#build": {
 | 
				
			||||||
      "dependsOn": ["$WEBSITE_BASE_URL"],
 | 
					      "dependsOn": [
 | 
				
			||||||
 | 
					        "$NEXT_PUBLIC_STRIPE_FREE_PLAN_PRICE",
 | 
				
			||||||
 | 
					        "$NEXT_PUBLIC_STRIPE_PREMIUM_PLAN_PRICE",
 | 
				
			||||||
 | 
					        "$NEXT_PUBLIC_STRIPE_PRO_PLAN_PRICE",
 | 
				
			||||||
 | 
					        "$NEXT_PUBLIC_STRIPE_PRO_PLAN_PRODUCT",
 | 
				
			||||||
 | 
					        "$NEXT_PUBLIC_STRIPE_PUBLIC_KEY",
 | 
				
			||||||
 | 
					        "$NEXT_PUBLIC_WEBAPP_URL",
 | 
				
			||||||
 | 
					        "$NEXT_PUBLIC_WEBSITE_URL",
 | 
				
			||||||
 | 
					        "$STRIPE_WEBHOOK_SECRET"
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
      "outputs": [".next/**"]
 | 
					      "outputs": [".next/**"]
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "build": {
 | 
					    "build": {
 | 
				
			||||||
| 
						 | 
					@ -83,7 +92,7 @@
 | 
				
			||||||
    "db-deploy": {},
 | 
					    "db-deploy": {},
 | 
				
			||||||
    "db-seed": {},
 | 
					    "db-seed": {},
 | 
				
			||||||
    "deploy": {
 | 
					    "deploy": {
 | 
				
			||||||
      "dependsOn": []
 | 
					      "dependsOn": ["@calcom/web#build"]
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "clean": {
 | 
					    "clean": {
 | 
				
			||||||
      "cache": false
 | 
					      "cache": false
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue