seitime-frappe/frappe/docs/user/en/bench/resources/bench-procfile.md
2017-07-31 16:21:13 +05:30

33 lines
1.1 KiB
Markdown
Executable file

# Bench Procfile
`bench start` uses [honcho](http://honcho.readthedocs.org) to manage multiple processes in **developer mode**.
### Processes
The various process that are needed to run frappe are:
1. `bench start` - the web server
4. `redis_cache` for caching (general)
5. `redis_queue` for managing queue for background workers
6. `redis_socketio` as a message broker for real-time updates / updates from background workers
7. `web` for the frappe web server.
7. `socketio` for real-time messaging.
3. `schedule` to trigger periodic tasks
3. `worker_*` redis workers to handle async jobs
Optionally if you are developing for frappe you can add:
`bench watch` to automatically build the desk javascript app.
### Sample
redis_cache: redis-server config/redis_cache.conf
redis_socketio: redis-server config/redis_socketio.conf
redis_queue: redis-server config/redis_queue.conf
web: bench serve --port 8000
socketio: /usr/bin/node apps/frappe/socketio.js
watch: bench watch
schedule: bench schedule
worker_short: bench worker --queue short
worker_long: bench worker --queue long
worker_default: bench worker --queue default