Fix/post deploy migrations (#2385)

* Runs db migrations post-deploy

* Deploy fixes
pull/2383/head
Omar López 2022-04-05 10:30:11 -06:00 committed by GitHub
parent d76b9b0d01
commit 6932d3600e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View File

@ -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;
} }

View File

@ -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