music-downloader/start/server.sh

15 lines
232 B
Bash

#!/bin/bash
# 安装工具
apt update
apt install mp3info
# 下载依赖包
cd /music-downloader
npm install
wait
# 运行服务器端
echo "run server, localhost:${SERVER_PORT}"
node /music-downloader/app/main.js ${SERVER_PORT}