Simplify env file

This commit is contained in:
Anthony Wang 2022-01-12 14:48:58 -06:00
parent ab5dd5c12a
commit 26203d9f54
Signed by: a
GPG key ID: BC96B00AEC5F2D76
3 changed files with 5 additions and 5 deletions

2
build
View file

@ -1,5 +1,5 @@
#!/bin/bash
source ./env
export $(cat env | xargs) # Read env variables from file
cd front
npm run build
cd ../back

6
env
View file

@ -1,3 +1,3 @@
export NEXT_PUBLIC_BACK_HOST='https://server.exozy.me'
export ORIGIN="*"
export PORT=6000
PORT=6000
NEXT_PUBLIC_BACK_HOST='https://server.exozy.me'
ORIGIN="*"

2
run
View file

@ -1,5 +1,5 @@
#!/bin/bash
source ./env
export $(cat env | xargs) # Read env variables from file
./build
cd front
npm run start -- -p 5000 | node ../back/dist/index.js