McCarthyism/run

18 lines
294 B
Text
Raw Normal View History

2022-01-14 00:56:32 +00:00
#!/usr/bin/bash
2022-01-13 18:21:20 +00:00
# Environment variable
export NEXT_PUBLIC_BACK_HOST='https://server.exozy.me'
export FRONT_PORT=5000
export PORT=6000
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