McCarthyism/run

18 lines
289 B
Text
Raw Permalink Normal View History

2022-01-14 00:56:32 +00:00
#!/usr/bin/bash
2022-01-13 18:21:20 +00:00
# Environment variable
2022-04-12 03:22:46 +00:00
export NEXT_PUBLIC_BACK_HOST='https://7.exozy.me'
2022-04-10 15:58:44 +00:00
export FRONT_PORT=4206
export PORT=4207
2022-01-13 18:21:20 +00:00
# Build
2021-05-08 23:20:25 +00:00
cd front
2022-01-13 18:21:20 +00:00
npm run build
cd ../back
npm run build
2022-01-14 00:51:45 +00:00
echo 'Build complete'
2022-01-13 18:21:20 +00:00
# Run
cd ../front
npm run start -- -p $FRONT_PORT | node ../back/dist/index.js