Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
courier
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张宇
courier
Commits
b15a36aa
Commit
b15a36aa
authored
Feb 11, 2020
by
zhongshangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix readme
parent
9580c074
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
11 deletions
+30
-11
README.md
README.md
+30
-11
No files found.
README.md
View file @
b15a36aa
#### Install
# Courier
更美私信服务
## 本地部署
1.
环境准备
```
sh
# ready file: /etc/gm-config
/storage/static.dir/helios.dir/static_route_table.json
# ready file: /etc/gm-config
mkdir
-p
/data/log/courier/app
# hosts文件或者添加courier/settings.py的同级文件settings_local.py覆盖DATABASE和CACHES
vim /etc/hosts
xxxx mysql-server
xxxx redis-server
# 创建 courier/settings_local.py, 准备 DATABASES / CACHES / REDIS 配置信息
# 创建虚拟环境,安装依赖
pip
install
-r
requirements.txt
```
```
#### Run
2.
启动项目
**python manage.py runserver**
##### python manage.py runserver
```
sh
GM_RPCD_MODE
=
deploy
GM_RPCD_DEPLOY_CONF_PATH
=
`
pwd
`
/deploy.conf python manage.py runserver
```
##### gunicorn
**gunicorn**
```
sh
GM_RPCD_MODE
=
deploy
GM_RPCD_DEPLOY_CONF_PATH
=
`
pwd
`
/deploy.conf gunicorn courier.wsgi:application
-c
deploy/
gunicorn.py
GM_RPCD_MODE
=
deploy
GM_RPCD_DEPLOY_CONF_PATH
=
`
pwd
`
/deploy.conf gunicorn courier.wsgi:application
-c
deploy/
```
## PaaS 部署
1.
环境准备
-
paas-conf 项目配置
`settings_local.py`
文件准备
-
configs 项目 配置文件准备
-
静态路由表增加新的服务路由: courier
2.
线上 Sentry 项目开通
3.
容器启动方式见
`Dockerfile`
Write
Preview
Markdown
is supported
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