remove apprunner config, add migrate-and-start script, disable next telemetry with environment variable

This commit is contained in:
Matthias Nannt
2022-07-14 15:07:29 +02:00
parent 13462fccee
commit 8aa55bf8ae
3 changed files with 3 additions and 24 deletions

View File

@@ -9,5 +9,7 @@ SMTP_PORT=587
SMTP_USER=smtpUser
SMTP_PASSWORD=smtpPassword
NEXT_TELEMETRY_DISABLED 1
# For Docker Setup use this Database URL:
# DATABASE_URL='postgresql://postgres:postgres@postgres:5432/snoopforms?schema=public'

View File

@@ -1,24 +0,0 @@
version: 1.0
runtime: nodejs14
build:
commands:
pre-build:
- yarn install --frozen-lockfile
- yarn prisma generate
build:
- yarn build
post-build:
- yarn install --production --ignore-scripts --prefer-offline
- yarn prisma migrate deploy
env:
- name: NEXT_TELEMETRY_DISABLED
value: 1
run:
runtime-version: 14
command: yarn start
network:
port: 3000
env: APP_PORT
env:
- name: NEXT_TELEMETRY_DISABLED
value: 1

View File

@@ -6,6 +6,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"migrate-and-start": "prisma migrate deploy && next start",
"lint": "next lint"
},
"dependencies": {