Skip to content

Commit

Permalink
docs: update (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
pycook authored Oct 10, 2023
1 parent a2c75fd commit 4c2e6ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
## 安装

### Docker 一键快速构建
- 进入主目录(先安装 docker 环境)
- 进入主目录(先安装 docker 环境, 注意要clone整个项目

```
docker-compose up -d
Expand Down
9 changes: 0 additions & 9 deletions cmdb-api/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,6 @@ def default(self, o):
return o


def create_acl_app(config_object="settings"):
app = Flask(__name__.split(".")[0])
app.config.from_object(config_object)

register_extensions(app)

return app


def create_app(config_object="settings"):
"""Create application factory, as explained here: http://flask.pocoo.org/docs/patterns/appfactories/.
Expand Down
10 changes: 6 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,15 @@ services:
flask db-setup
flask common-check-new-columns
gunicorn --workers=3 autoapp:app -b 0.0.0.0:5000 -D
celery -A celery_worker.celery worker -E -Q one_cmdb_async --autoscale=5,2 --logfile=one_cmdb_async.log -D
celery -A celery_worker.celery worker -E -Q acl_async --logfile=one_acl_async.log --concurrency=2 -D
nohup flask cmdb-trigger > trigger.log 2>&1 &
flask cmdb-init-cache
flask cmdb-init-acl
nohup flask cmdb-trigger > trigger.log 2>&1 &
nohup flask cmdb-counter > counter.log 2>&1 &
flask cmdb-counter > counter.log 2>&1
celery -A celery_worker.celery worker -E -Q one_cmdb_async --autoscale=5,2 --logfile=one_cmdb_async.log -D
celery -A celery_worker.celery worker -E -Q acl_async --logfile=one_acl_async.log --concurrency=2
depends_on:
- cmdb-db
- cmdb-cache
Expand Down

0 comments on commit 4c2e6ae

Please sign in to comment.