aboutsummaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
Diffstat (limited to 'run')
-rwxr-xr-xrun12
1 files changed, 9 insertions, 3 deletions
diff --git a/run b/run
index 75c7d22..a51ef12 100755
--- a/run
+++ b/run
@@ -1,5 +1,11 @@
#!/bin/bash
-export $(cat env | xargs) # Read env variables from file
-./build
+
+# Build
cd front
-npm run start -- -p 5000 | node ../back/dist/index.js
+npm run build
+cd ../back
+npm run build
+
+# Run
+cd ../front
+npm run start -- -p 5000 | env PORT=6000 NEXT_PUBLIC_BACK_HOST='https://server.exozy.me' node ../back/dist/index.js