13 lines
388 B
Bash
13 lines
388 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
set -e
|
||
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||
|
|
cd "$ROOT_DIR/department-api"
|
||
|
|
npm install
|
||
|
|
cd "$ROOT_DIR/department-web"
|
||
|
|
npm install
|
||
|
|
npm run build
|
||
|
|
sudo cp "$ROOT_DIR/department-api.service" /etc/systemd/system/department-api.service
|
||
|
|
sudo systemctl daemon-reload
|
||
|
|
sudo systemctl enable department-api.service
|
||
|
|
sudo systemctl restart department-api.service
|