Browse Source

commit

master
yyy9608 9 months ago
parent
commit
e3205fe97b
  1. 2
      package.json
  2. 4
      src-tauri/tauri.conf.json
  3. 4
      src/config/index.ts

2
package.json

@ -43,7 +43,7 @@
"test": "react-app-rewired test",
"build": "react-app-rewired build",
"deploy:dev": "npm run build && scp -r ./build/* vps:/home/ubuntu/pzy/simple",
"deploy:prod:dc": "npm run build && scp -r ./build/* dcfilefast_prod:/data/wwwroot/admin-filefast"
"deploy:prod": "npm run build && scp -r ./build/* metatrader_prod:/data/wwwroot/admin-simple"
},
"eslintConfig": {
"extends": "react-app"

4
src-tauri/tauri.conf.json

@ -3,7 +3,7 @@
"beforeBuildCommand": "npm run build",
"beforeDevCommand": "npm run start",
"devPath": "http://localhost:3000",
"distDir": "../build"
"distDir": "http://192.168.124.20:3001"
},
"package": {
"productName": "metatrader-admin",
@ -53,7 +53,7 @@
"active": false
},
"windows": [{
"fullscreen": false,
"fullscreen": true,
"minHeight": 600,
"resizable": true,
"title": "metatrader-admin",

4
src/config/index.ts

@ -1,10 +1,10 @@
export const httpIp = {
simpleTradeKey: {
dev: 'http://14.29.101.215:30303/api/v1',
prod: 'http://203.161.61.234:30303/api/v1'
prod: 'https://simpletrade.site/api/v1'
}
}
export const getBaseURL = () => {
return httpIp.simpleTradeKey.dev
return httpIp.simpleTradeKey.prod
}
Loading…
Cancel
Save