目录
├── apps
├── frappe
├── config
├── redis_cache.conf
├── redis_queue.conf
└── redis_socketio.conf
├── env
├── logs
├── Procfile
└── sites
├── apps.txt
├── assets
├── common_site_config.json
└── site1.local
├── private
├── public
└── site_config.json
apps
存放app 以及自定义的app
sites
站点从这个目录中提供服务。运行该命令时,站点将在此目录下创建。站点根据目录名进行区分。测试新站点site_name
logs
该目录用于转储各个进程的日志文件。每个日志文件都根据记录它的进程命名
config
Frappe使用3个Redis实例来管理缓存、作业队列和socket通信。所有这些构型都在这里。
env
Python虚拟环境位于此目录中。基于Frappe的应用程序和Python包依赖项安装在这里。
Procfile
Frappe使用基于Procfile的进程管理
redis_cache: redis-server config/redis_cache.confredis_socketio: redis-server config/redis_socketio.confredis_queue: redis-server config/redis_queue.confweb: bench serve --port 8000socketio: /usr/bin/node apps/frappe/socketio.js watch: bench watch schedule: bench scheduleworker_short: bench worker --queue short --quietworker_long: bench worker --queue long --quietworker_default: bench worker --queue default --quiet