#!/usr/bin/env bash if [[ "$(uname -s)" == "Darwin" ]]; then echo "Don't run this on your local computer!" exit 1 fi echo "[remote] linking nginx configuration" sudo ln -s /etc/nginx/sites-available/djinlist /etc/nginx/sites-enabled/ echo "[remote] Updating processor" cd djinmusic pnpm install -r cd .. pm2 stop Djiny pm2 start Djiny # pm2 stop processor # pm2 start processor echo "[remote] Installed"