diff --git a/.env.example b/.env.example index f7045d3f19..bd4c6340d8 100644 --- a/.env.example +++ b/.env.example @@ -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' diff --git a/apprunner.yaml b/apprunner.yaml deleted file mode 100644 index 5607b10244..0000000000 --- a/apprunner.yaml +++ /dev/null @@ -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 diff --git a/package.json b/package.json index 8fe6ebd3af..cdc444cfcd 100644 --- a/package.json +++ b/package.json @@ -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": {