Skip to content

Commit 8e955f8

Browse files
authored
Update README.md
1 parent 5268439 commit 8e955f8

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

README.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
截图及步骤请看
2-
http://codingcrush.me/2017/04/16/weekly-report/
1+
截图(V0.1):http://codingcrush.me/2017/04/16/weekly-report/
32

4-
## 配置说明
5-
`-w <N>`为开启的gunicorn worker进程数
3+
## 快速运行
4+
`-w <N>`为开启的gunicorn worker进程数
5+
`-p 8000:80` 主机通过8000端口访问
66

77
```bash
88
git clone https://github.com/CodingCrush/WeeklyReport && \
@@ -27,20 +27,16 @@ V0.2: 简化了部署步骤
2727
## 配置说明
2828

2929
+ 配置数据库
30-
数据库默认使用sqlite,方便快捷。
31-
32-
或者可以使用postgres container,cd到postgres目录下,pull镜像,启动。
33-
数据库URI地址由数据库名、用户名、密码、主机、端口号构造。
30+
数据库默认使用sqlite,也可以使用postgres container,cd到postgres目录下,pull镜像,启动。
31+
数据库URI地址由数据库名、用户名、密码、主机、端口号组成。
3432
```
3533
SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:postgres@localhost/wr_prd'
3634
```
3735
步骤见postgres目录下的readme.md
3836

3937
+ 配置config.py
4038

41-
修改config.py并进行配置:
42-
43-
`DEPARTMENTS`:`这个元组为部门列表,第一次打开时自动初始化到数据库中,用户在注册时可以选择部门。
39+
`DEPARTMENTS`: 这个元组为部门列表,第一次打开时自动初始化到数据库中,用户在注册时可以选择部门。
4440

4541
`MAIL_USERNAME` : 用来发送邮件通知的邮箱账号
4642

0 commit comments

Comments
 (0)