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
83fbfca3
Commit
83fbfca3
authored
Jul 29, 2018
by
Junling Bu
Browse files
update doc
parent
e73f061a
Changes
3
Hide whitespace changes
Inline
Side-by-side
deploy/README.md
View file @
83fbfca3
1.
项目进一步打包到deploy文件夹中:
1.
项目进一步打包到deploy文件夹中:
*
litemall-os-api模块编译得到的litemall-os-api-0.1.0-exec.jar 保存到deploy的litemall-api文件夹中,同时重命名成litemall-os-api.jar
*
litemall-wx-api模块编译得到的litemall-wx-api-0.1.0-exec.jar 保存到deploy的litemall-api文件夹中,同时重命名成litemall-wx-api.jar
*
litemall-wx-api模块编译得到的litemall-wx-api-0.1.0-exec.jar 保存到deploy的litemall-api文件夹中,同时重命名成litemall-wx-api.jar
*
litemall-admin-api模块编译得到的litemall-admin-api-0.1.0-exec.jar 保存到deploy的litemall-api文件夹中,同时重命名成litemall-admin-api.jar
*
litemall-admin-api模块编译得到的litemall-admin-api-0.1.0-exec.jar 保存到deploy的litemall-api文件夹中,同时重命名成litemall-admin-api.jar
*
litemall-admin模块编译以后,把dist文件夹压缩,然后放到deploy的litemall-admin文件夹中。
*
litemall-admin模块编译以后,把dist文件夹压缩,然后放到deploy的litemall-admin文件夹中。
...
@@ -16,6 +15,7 @@
...
@@ -16,6 +15,7 @@
cd deploy
cd deploy
mysql -h localhost -u root -p123456
mysql -h localhost -u root -p123456
source ./litemall-db/litemall_schema.sql
source ./litemall-db/litemall_schema.sql
use litemall;
source ./litemall-db/litemall_table.sql
source ./litemall-db/litemall_table.sql
source ./litemall-db/litemall_data.sql
source ./litemall-db/litemall_data.sql
```
```
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
然后测试是否部署成功(xxx.xxx.xxx.xxx是云主机IP):
然后测试是否部署成功(xxx.xxx.xxx.xxx是云主机IP):
```
```
http://xxx.xxx.xxx.xxx:8081/os/index/index
http://xxx.xxx.xxx.xxx:8082/wx/index/index
http://xxx.xxx.xxx.xxx:8082/wx/index/index
http://xxx.xxx.xxx.xxx:8083/admin/index/index
http://xxx.xxx.xxx.xxx:8083/admin/index/index
http://xxx.xxx.xxx.xxx:8080/#/login
http://xxx.xxx.xxx.xxx:8080/#/login
...
@@ -46,21 +45,14 @@
...
@@ -46,21 +45,14 @@
为了简化步骤1和步骤2,完成了deploy/util/package.sh上传脚本和deploy/util/lazy.sh部署脚本,
为了简化步骤1和步骤2,完成了deploy/util/package.sh上传脚本和deploy/util/lazy.sh部署脚本,
注意:
注意:
>
*
开发者需要在deploy/util/package.sh和deploy/util/lazy.sh中设置相应的云主机登录账号和密钥文件路径。
>
1.
开发者需要在deploy/util/package.sh和deploy/util/lazy.sh中设置相应的云主机登录账号和密钥文件路径。
>
*
开发者需要在deploy/
util
/reset.sh设置云主机的MySQL的root登录账户。
>
2.
开发者需要在deploy/
bin
/reset.sh设置云主机的MySQL的root登录账户。
>
*
请先执行
上述1-6
步骤,确保部署环境成功。
>
3.
请先执行
1.5.1中上述
步骤,确保部署环境成功。
*
上传脚本
*
package.sh
该脚本会自动把当前项目不同模块下的最终部署文件复制到deploy文件夹中,然后上传到云主机。
该脚本会自动把当前项目Spring Boot项目打包和Vue项目打包工作,然后复制到deploy文件夹中。
该上传脚本没有自动做Spring Boot项目打包和Vue项目打包工作
*
lazy.sh
* 部署脚本
该脚本会调用package.sh打包项目,然后上传deploy文件夹到云主机,最后ssh登录远程主机执行bin下面的deploy.sh脚本。
\ No newline at end of file
该脚本会编译项目,再上传deploy文件,最后ssh登录远程主机执行bin下面的deploy.sh脚本。
注意,运行命令必须在项目主目录中,类似如下命令:
```bash
cd litemall
./deploy/util/lazy.sh
```
deploy/litemall-api/config/application-core.yml
View file @
83fbfca3
litemall
:
litemall
:
# 开发者应该设置成自己的wx相关信息
wx
:
app-id
:
wxa5b486c6b918ecfb
app-secret
:
e04004829d4c383b4db7769d88dfbca1
mch-id
:
111111
mch-key
:
xxxxxx
notify-url
:
http://www.example.com/wx/order/pay-notify
#通知相关配置
notify
:
notify
:
mail
:
mail
:
# 邮件通知配置,邮箱一般用于接收业务通知例如收到新的订单,sendto 定义邮件接收者,通常为商城运营人员
# 邮件通知配置,邮箱一般用于接收业务通知例如收到新的订单,sendto 定义邮件接收者,通常为商城运营人员
enable
:
tru
e
enable
:
fals
e
host
:
smtp.exmail.qq.com
host
:
smtp.exmail.qq.com
username
:
ex@ex.com.cn
username
:
ex@ex.com.cn
password
:
XXXXXXXXXXXXX
password
:
XXXXXXXXXXXXX
...
@@ -12,7 +21,7 @@ litemall:
...
@@ -12,7 +21,7 @@ litemall:
# 短消息模版通知配置
# 短消息模版通知配置
# 短信息用于通知客户,例如发货短信通知,注意配置格式;template-name,template-templateId 请参考 NotifyType 枚举值
# 短信息用于通知客户,例如发货短信通知,注意配置格式;template-name,template-templateId 请参考 NotifyType 枚举值
sms
:
sms
:
enable
:
tru
e
enable
:
fals
e
appid
:
111111111
appid
:
111111111
appkey
:
xxxxxxxxxxxxxx
appkey
:
xxxxxxxxxxxxxx
template
:
template
:
...
@@ -28,7 +37,7 @@ litemall:
...
@@ -28,7 +37,7 @@ litemall:
# 微信模版通知配置
# 微信模版通知配置
# 微信模版用于通知客户或者运营者,注意配置格式;template-name,template-templateId 请参考 NotifyType 枚举值
# 微信模版用于通知客户或者运营者,注意配置格式;template-name,template-templateId 请参考 NotifyType 枚举值
wx
:
wx
:
enable
:
tru
e
enable
:
fals
e
template
:
template
:
-
name
:
paySucceed
-
name
:
paySucceed
templateId
:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
templateId
:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
...
@@ -41,7 +50,7 @@ litemall:
...
@@ -41,7 +50,7 @@ litemall:
# 快鸟物流查询配置
# 快鸟物流查询配置
express
:
express
:
enable
:
tru
e
enable
:
fals
e
appId
:
"
XXXXXXXXX"
appId
:
"
XXXXXXXXX"
appKey
:
"
XXXXXXXXXXXXXXXXXXXXXXXXX"
appKey
:
"
XXXXXXXXXXXXXXXXXXXXXXXXX"
vendors
:
vendors
:
...
@@ -70,4 +79,27 @@ litemall:
...
@@ -70,4 +79,27 @@ litemall:
-
code
:
"
FEDEX"
-
code
:
"
FEDEX"
name
:
"
FEDEX联邦(国内件)"
name
:
"
FEDEX联邦(国内件)"
-
code
:
"
FEDEX_GJ"
-
code
:
"
FEDEX_GJ"
name
:
"
FEDEX联邦(国际件)"
name
:
"
FEDEX联邦(国际件)"
\ No newline at end of file
# 对象存储配置
storage
:
# 当前工作的对象存储模式,分别是local、aliyun、tencent
active
:
local
# 本地对象存储配置信息
local
:
storagePath
:
storage
address
:
http://localhost:8082/wx/storage/fetch/
port
:
8081
# 阿里云对象存储配置信息
aliyun
:
endpoint
:
oss-cn-shenzhen.aliyuncs.com
accessKeyId
:
111111
accessKeySecret
:
xxxxxx
bucketName
:
xxxxxx
# 腾讯对象存储配置信息
# 请参考 https://cloud.tencent.com/document/product/436/6249
tencent
:
secretId
:
111111
secretKey
:
xxxxxx
region
:
xxxxxx
bucketName
:
xxxxxx
\ No newline at end of file
deploy/litemall-api/config/application-wx.yml
View file @
83fbfca3
# 开发者应该设置成自己的wx相关信息
litemall
:
wx
:
app-id
:
wxa5b486c6b918ecfb
app-secret
:
e04004829d4c383b4db7769d88dfbca1
mch-id
:
111111
mch-key
:
xxxxxx
notify-url
:
http://www.example.com/wx/order/pay-notify
\ No newline at end of file
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