增加start.sh文件
parent
eafb397980
commit
cc2e048137
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# 下载依赖包
|
||||||
|
npm install http-server -g
|
||||||
|
|
||||||
|
# 运行前端页面
|
||||||
|
cd /music-downloader/html
|
||||||
|
http-server -p 8080
|
|
@ -121,8 +121,9 @@
|
||||||
el: "#app",
|
el: "#app",
|
||||||
data() {
|
data() {
|
||||||
const ajax = axios.create({
|
const ajax = axios.create({
|
||||||
baseURL: 'http://localhost:5000',
|
baseURL: 'http://www.amuliang.top:5750',
|
||||||
timeout: 5000,
|
//baseURL: 'http://localhost:5000',
|
||||||
|
timeout: 10000,
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
//'Access-Control-Allow-Origin': true
|
//'Access-Control-Allow-Origin': true
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue