2
0
Files
bot/viewer-entrypoint.sh

11 lines
357 B
Bash
Raw Normal View History

#!/bin/bash
2022-08-08 08:21:36 +02:00
ENVSH_ENV=./apps/viewer/.env.production ENVSH_OUTPUT=./apps/viewer/public/__env.js bash env.sh
if [[ $DATABASE_URL == postgresql://* ]]; then
./node_modules/.bin/prisma generate --schema=packages/db/postgresql/schema.prisma;
else
./node_modules/.bin/prisma generate --schema=packages/db/mysql/schema.prisma;
fi
2022-08-08 08:21:36 +02:00
node apps/viewer/server.js;