aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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