File tree 1 file changed +7
-11
lines changed
1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 1
- 截图及步骤请看
2
- http://codingcrush.me/2017/04/16/weekly-report/
1
+ 截图(V0.1):http://codingcrush.me/2017/04/16/weekly-report/
3
2
4
- ## 配置说明
5
- ` -w <N> ` 为开启的gunicorn worker进程数
3
+ ## 快速运行
4
+ ` -w <N> ` 为开启的gunicorn worker进程数
5
+ ` -p 8000:80 ` 主机通过8000端口访问
6
6
7
7
``` bash
8
8
git clone https://github.com/CodingCrush/WeeklyReport && \
@@ -27,20 +27,16 @@ V0.2: 简化了部署步骤
27
27
## 配置说明
28
28
29
29
+ 配置数据库
30
- 数据库默认使用sqlite,方便快捷。
31
-
32
- 或者可以使用postgres container,cd到postgres目录下,pull镜像,启动。
33
- 数据库URI地址由数据库名、用户名、密码、主机、端口号构造。
30
+ 数据库默认使用sqlite,也可以使用postgres container,cd到postgres目录下,pull镜像,启动。
31
+ 数据库URI地址由数据库名、用户名、密码、主机、端口号组成。
34
32
```
35
33
SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:postgres@localhost/wr_prd'
36
34
```
37
35
步骤见postgres目录下的readme.md
38
36
39
37
+ 配置config.py
40
38
41
- 修改config.py并进行配置:
42
-
43
- ` DEPARTMENTS ` :`这个元组为部门列表,第一次打开时自动初始化到数据库中,用户在注册时可以选择部门。
39
+ ` DEPARTMENTS ` : 这个元组为部门列表,第一次打开时自动初始化到数据库中,用户在注册时可以选择部门。
44
40
45
41
` MAIL_USERNAME ` : 用来发送邮件通知的邮箱账号
46
42
You can’t perform that action at this time.
0 commit comments