增加start.sh文件

main
amuliang 2023-08-02 15:42:30 +08:00
parent eafb397980
commit cc2e048137
4 changed files with 28 additions and 2 deletions

8
html.sh 100644
View File

@ -0,0 +1,8 @@
#!/bin/bash
# 下载依赖包
npm install http-server -g
# 运行前端页面
cd /music-downloader/html
http-server -p 8080

View File

@ -121,8 +121,9 @@
el: "#app",
data() {
const ajax = axios.create({
baseURL: 'http://localhost:5000',
timeout: 5000,
baseURL: 'http://www.amuliang.top:5750',
//baseURL: 'http://localhost:5000',
timeout: 10000,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
//'Access-Control-Allow-Origin': true

11
server.sh 100644
View File

@ -0,0 +1,11 @@
#!/bin/bash
# 下载依赖包
npm install
# 拉取代码
cd /
git clone http://192.168.1.253:9130/amuliang/music-downloader.git
# 运行服务器端
node /music-downloader/app/main.js

6
start.sh 100644
View File

@ -0,0 +1,6 @@
#!/bin/bash
./server.sh &
./start.sh &
echo "start success !!!"