prepare for deployment

This commit is contained in:
keyan 2021-06-02 10:23:30 -04:00
parent 80ff13abd6
commit 17a79b2251
6 changed files with 15 additions and 3 deletions

1
Buildfile Normal file
View File

@ -0,0 +1 @@
make: ./build.sh

2
Procfile Normal file
View File

@ -0,0 +1,2 @@
web: yarn start
walletd: node --trace-warnings walletd/index.js

7
build.sh Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# install yarn
sudo npm install yarn -g
# build it
yarn build

View File

@ -28,8 +28,8 @@ const options = {
}
}),
Providers.Email({
server: process.env.EMAIL_SERVER,
from: process.env.EMAIL_FROM,
server: process.env.LOGIN_EMAIL_SERVER,
from: process.env.LOGIN_EMAIL_FROM,
profile: profile => {
return profile
}

View File

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "users" ALTER COLUMN "name" DROP NOT NULL;

View File

@ -14,7 +14,7 @@ model User {
id Int @id @default(autoincrement())
createdAt DateTime @default(now()) @map(name: "created_at")
updatedAt DateTime @default(now()) @updatedAt @map(name: "updated_at")
name String @unique
name String? @unique
email String? @unique
emailVerified DateTime? @map(name: "email_verified")
image String?