Merge scripts into a single run script
This commit is contained in:
parent
547a46697a
commit
aad9977d79
3 changed files with 10 additions and 12 deletions
6
build
6
build
|
@ -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
|
4
env
4
env
|
@ -1,3 +1 @@
|
|||
PORT=6000
|
||||
NEXT_PUBLIC_BACK_HOST='https://server.exozy.me'
|
||||
ORIGIN="*"
|
||||
|
||||
|
|
12
run
12
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
|
||||
|
|
Loading…
Reference in a new issue