diff options
author | Anthony Wang | 2022-01-12 14:48:58 -0600 |
---|---|---|
committer | Anthony Wang | 2022-01-12 14:48:58 -0600 |
commit | 26203d9f549d3eaeb9f2b47e0322bd79a71c8b30 (patch) | |
tree | 8211c4dd17bc93de0f4d18702114177a6c0bd48b | |
parent | ab5dd5c12a71e28297e9b0385f0162f75f72853a (diff) |
Simplify env file
-rwxr-xr-x | build | 2 | ||||
-rw-r--r-- | env | 6 | ||||
-rwxr-xr-x | run | 2 |
3 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ #!/bin/bash -source ./env +export $(cat env | xargs) # Read env variables from file cd front npm run build cd ../back @@ -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="*" @@ -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 |