17 lines
292 B
Bash
Executable file
17 lines
292 B
Bash
Executable file
#!/usr/bin/bash
|
|
|
|
# Environment variable
|
|
export NEXT_PUBLIC_BACK_HOST='https://game.exozy.me'
|
|
export FRONT_PORT=4206
|
|
export PORT=4207
|
|
|
|
# Build
|
|
cd front
|
|
npm run build
|
|
cd ../back
|
|
npm run build
|
|
echo 'Build complete'
|
|
|
|
# Run
|
|
cd ../front
|
|
npm run start -- -p $FRONT_PORT | node ../back/dist/index.js
|