Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
34dd88bd
Commit
34dd88bd
authored
Nov 04, 2019
by
Junling Bu
Browse files
chore: 测试服务器IP地址切换
parent
f16b2f35
Changes
8
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
34dd88bd
...
...
@@ -31,7 +31,7 @@ litemall = Spring Boot后端 + Vue管理员前端 + 微信小程序用户前端

或者浏览器采用手机模式访问以下网址:
[
http://1
18.24.0.153
:8080/vue/index.html#/
](
http://1
18.24.0.153
:8080/vue/index.html#/
)
或者浏览器采用手机模式访问以下网址:
[
http://1
22.51.199.160
:8080/vue/index.html#/
](
http://1
22.51.199.160
:8080/vue/index.html#/
)
注意:
> 1. 由于第一次加载数据量较大,建议wifi网络访问,且耐心等待数秒。
...
...
@@ -41,7 +41,7 @@ litemall = Spring Boot后端 + Vue管理员前端 + 微信小程序用户前端

1.
浏览器打开,输入以下网址:
[
http://1
18.24.0.153
:8080/#/login
](
http://1
18.24.0.153
:8080/#/login
)
1.
浏览器打开,输入以下网址:
[
http://1
22.51.199.160
:8080/#/login
](
http://1
22.51.199.160
:8080/#/login
)
2.
管理员用户名
`admin123`
,管理员密码
`admin123`
> 注意:此实例只是测试管理后台,不是前两个小商城的管理后台。
...
...
deploy/litemall/application.yml
View file @
34dd88bd
...
...
@@ -41,7 +41,7 @@ litemall:
app-secret
:
e04004829d4c383b4db7769d88dfbca1
mch-id
:
111111
mch-key
:
xxxxxx
notify-url
:
http://1
18.24.0.153
:8080/wx/order/pay-notify
notify-url
:
http://1
22.51.199.160
:8080/wx/order/pay-notify
# 商户证书文件路径
# 请参考“商户证书”一节 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=4_3
key-path
:
xxxxx
...
...
@@ -136,7 +136,7 @@ litemall:
# 本地对象存储配置信息
local
:
storagePath
:
storage
address
:
http://1
18.24.0.153
:8080/wx/storage/fetch/
address
:
http://1
22.51.199.160
:8080/wx/storage/fetch/
# 阿里云对象存储配置信息
aliyun
:
endpoint
:
oss-cn-shenzhen.aliyuncs.com
...
...
deploy/util/lazy.sh
View file @
34dd88bd
...
...
@@ -6,7 +6,7 @@
# 3. 远程登录云服务器并执行reset脚本
# 请设置云服务器的IP地址和账户
# 例如 ubuntu@1
18.24.0.153
# 例如 ubuntu@1
22.51.199.160
REMOTE
=
# 请设置本地SSH私钥文件id_rsa路径
# 例如 /home/litemall/id_rsa
...
...
doc/project.md
View file @
34dd88bd
...
...
@@ -435,7 +435,7 @@ flush privilege
// 局域网测试使用
// var WxApiRoot = 'http://192.168.0.101:8080/wx/';
// 云平台部署时使用
// var WxApiRoot = 'http://1
18.24.0.153
:8080/wx/';
// var WxApiRoot = 'http://1
22.51.199.160
:8080/wx/';
// 云平台上线时使用
// var WxApiRoot = 'https://www.menethil.com.cn/wx/';
...
...
@@ -918,7 +918,7 @@ sudo apt-get install mysql-client
如果配置MySQL,可以运行命令
```
mysql_secure_installation
sudo
mysql_secure_installation
```
#### 1.5.1.4 项目打包
...
...
doc/wxmall.md
View file @
34dd88bd
...
...
@@ -236,14 +236,14 @@ var WxApiRoot = 'http://localhost:8082/wx/';
// 局域网测试使用
// var WxApiRoot = 'http://192.168.0.101:8082/wx/';
// 云平台部署时使用
// var WxApiRoot = 'http://1
18.24.0.153
:8082/wx/';
// var WxApiRoot = 'http://1
22.51.199.160
:8082/wx/';
```
也就是说这里存在三种类型的API服务地址,这里是考虑到开发存在三种情况:
1.
本机开发时,localhost是当前开发机的地址;
2.
手机预览时,192.168.0.101是开发机的IP地址;
3.
当后台部署在云服务器中时,1
18.24.0.153
是云服务器的IP地址;
3.
当后台部署在云服务器中时,1
22.51.199.160
是云服务器的IP地址;
4.
此外,更最重要的是,如果小程序正式部署时,这里的地址必须是域名,
而不能是IP地址。
...
...
litemall-admin/config/dep.env.js
View file @
34dd88bd
module
.
exports
=
{
NODE_ENV
:
'
"production"
'
,
ENV_CONFIG
:
'
"dep"
'
,
BASE_API
:
'
"http://1
18.24.0.153
:8080/admin"
'
BASE_API
:
'
"http://1
22.51.199.160
:8080/admin"
'
}
litemall-vue/.env.deployment
View file @
34dd88bd
...
...
@@ -2,4 +2,4 @@
ENV = 'production'
# base api
VUE_APP_BASE_API = 'http://118.24.0.153:8080/'
\ No newline at end of file
VUE_APP_BASE_API = 'http://122.51.199.160:8080/'
\ No newline at end of file
litemall-wx/config/api.js
View file @
34dd88bd
...
...
@@ -4,7 +4,7 @@ var WxApiRoot = 'http://localhost:8080/wx/';
// 局域网测试使用
// var WxApiRoot = 'http://192.168.0.101:8080/wx/';
// 云平台部署时使用
// var WxApiRoot = 'http://1
18.24.0.153
:8080/wx/';
// var WxApiRoot = 'http://1
22.51.199.160
:8080/wx/';
// 云平台上线时使用
// var WxApiRoot = 'https://www.menethil.com.cn/wx/';
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment