diff options
author | Anthony Wang | 2022-01-13 12:21:20 -0600 |
---|---|---|
committer | Anthony Wang | 2022-01-13 12:21:20 -0600 |
commit | aad9977d79cd0e50c06ba4970de80265b9ad86c3 (patch) | |
tree | bb24d337e1aa5bf0d0df837c8d44918627e2b76b | |
parent | 547a46697aef6b1c26cbdba89e8f3e30832354b5 (diff) |
Merge scripts into a single run script
-rwxr-xr-x | build | 6 | ||||
-rw-r--r-- | env | 4 | ||||
-rwxr-xr-x | run | 12 |
3 files changed, 10 insertions, 12 deletions
@@ -1,6 +0,0 @@ -#!/bin/bash -export $(cat env | xargs) # Read env variables from file -cd front -npm run build -cd ../back -npm run build @@ -1,3 +1 @@ -PORT=6000 -NEXT_PUBLIC_BACK_HOST='https://server.exozy.me' -ORIGIN="*" + @@ -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 |