From f5e31b78aaaea272e5f6641b24643e8bec38bcd8 Mon Sep 17 00:00:00 2001 From: Michael Schramm Date: Wed, 3 Jun 2020 20:16:31 +0200 Subject: [PATCH] fix copy path and add mailtrap --- app.json | 16 ++++++++++------ scripts/heroku/postbuild.sh | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app.json b/app.json index b1bb089e..05c841f6 100644 --- a/app.json +++ b/app.json @@ -3,7 +3,10 @@ "description": "Opensource alternative to TypeForm", "repository": "https://github.com/ohmyform/ohmyform", "logo": "https://raw.githubusercontent.com/ohmyform/ohmyform/master/public/logo.png", - "keywords": ["form", "survey"], + "keywords": [ + "form", + "survey" + ], "env": { "BASE_URL": { "description": "Domain name where the site will be hosted", @@ -11,7 +14,7 @@ }, "MAILER_URI": { "description": "Set this to a uri like smtp://localhost:1025 - for more information check https://nodemailer.com/", - "value": "" + "value": "smtp://smtp.mailtrap.io:2525" }, "MAILER_FROM": { "description": "Email address from which signup/verifications are sent", @@ -45,11 +48,12 @@ "description": "Allow Dev Dependencies so we can compile typescript", "value": "false" } - }, + }, "addons": [ - "mongolab", - "heroku-redis" - ], + "mongolab", + "heroku-redis", + "mailtrap" + ], "buildpacks": [ { "url": "heroku/nodejs" diff --git a/scripts/heroku/postbuild.sh b/scripts/heroku/postbuild.sh index b6e68c4e..7f169257 100755 --- a/scripts/heroku/postbuild.sh +++ b/scripts/heroku/postbuild.sh @@ -3,7 +3,7 @@ echo "Build and Export UI" yarn --cwd ui export echo "Copy Exported UI to API" -cp -r ui/out/ api/public/ +cp -r ui/out/* api/public/ echo "Build API" yarn --cwd api build