Login
4 branches 0 tags
Ben (Desktop/Arch) Remote CI 709f28c 14 days ago 248 Commits
rubhub / deploy.systemd
#!/usr/bin/env bash
cd -- "$(dirname -- "${BASH_SOURCE[0]}")"

# Build Frontend
npm ci
npm run build

# Build Backend (with the Frontend resources embedded)
cargo build --release

# Install executable / SystemD unit file
install -Dm0755 target/release/rubhub /usr/local/bin/rubhub
install -Dm0644 rubhub.service /etc/systemd/system/rubhub.service

# Now reload/restart the rubhub service
systemctl daemon-reload
systemctl restart rubhub