aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-01-12 14:48:58 -0600
committerAnthony Wang2022-01-12 14:48:58 -0600
commit26203d9f549d3eaeb9f2b47e0322bd79a71c8b30 (patch)
tree8211c4dd17bc93de0f4d18702114177a6c0bd48b
parentab5dd5c12a71e28297e9b0385f0162f75f72853a (diff)
Simplify env file
-rwxr-xr-xbuild2
-rw-r--r--env6
-rwxr-xr-xrun2
3 files changed, 5 insertions, 5 deletions
diff --git a/build b/build
index a9fe3ba..b88321a 100755
--- a/build
+++ b/build
@@ -1,5 +1,5 @@
#!/bin/bash
-source ./env
+export $(cat env | xargs) # Read env variables from file
cd front
npm run build
cd ../back
diff --git a/env b/env
index a55a157..eea8d97 100644
--- a/env
+++ b/env
@@ -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="*"
diff --git a/run b/run
index 7ce0311..75c7d22 100755
--- a/run
+++ b/run
@@ -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