From 26203d9f549d3eaeb9f2b47e0322bd79a71c8b30 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Wed, 12 Jan 2022 14:48:58 -0600 Subject: Simplify env file --- build | 2 +- env | 6 +++--- run | 2 +- 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 -- cgit v1.2.3-70-g09d2