erp-next/deploy
cclohmar f0e6033cef chore: add --proxy flag and host_name config for Zoraxy reverse proxy
- Added --proxy to bench serve for proper proxy header handling
- Set host_name: http://erp.lohmar.co.uk in site_config
- Added dns_multitenant: false in common_site_config
- Updated deploy systemd service file
2026-07-15 20:51:21 +00:00
..
bench-env.sh chore: add deploy config with systemd services for auto-start on boot 2026-07-15 20:44:59 +00:00
frappe-bench-schedule.service chore: add deploy config with systemd services for auto-start on boot 2026-07-15 20:44:59 +00:00
frappe-bench-socketio.service chore: add deploy config with systemd services for auto-start on boot 2026-07-15 20:44:59 +00:00
frappe-bench-watch.service chore: add deploy config with systemd services for auto-start on boot 2026-07-15 20:44:59 +00:00
frappe-bench-web.service chore: add --proxy flag and host_name config for Zoraxy reverse proxy 2026-07-15 20:51:21 +00:00
frappe-bench-worker.service chore: add deploy config with systemd services for auto-start on boot 2026-07-15 20:44:59 +00:00
frappe-bench.target chore: add deploy config with systemd services for auto-start on boot 2026-07-15 20:44:59 +00:00
README.md chore: add deploy config with systemd services for auto-start on boot 2026-07-15 20:44:59 +00:00

Deployment Configuration

Systemd Services

The Frappe Bench (ERPNext) is managed via systemd for automatic startup on boot.

Services

Service Description Port
frappe-bench-web.service Web server (gunicorn) 8000
frappe-bench-worker.service Background async worker -
frappe-bench-schedule.service Scheduled job runner -
frappe-bench-socketio.service Realtime WebSocket server 9000
frappe-bench-watch.service File watcher (dev/assets) -

Management

# View status of all services
systemctl status frappe-bench-web.service

# Start/Stop all services
systemctl start frappe-bench.target
systemctl stop frappe-bench.target

# View logs
journalctl -u frappe-bench-web.service -f
journalctl -u frappe-bench-worker.service -f

Installation

sudo cp deploy/frappe-bench-*.service deploy/frappe-bench.target /etc/systemd/system/
sudo cp deploy/bench-env.sh /opt/erpnext/frappe-bench/bench-env.sh
sudo systemctl daemon-reload
sudo systemctl enable frappe-bench.target
sudo systemctl start frappe-bench.target

Credentials

Admin credentials are stored in /root/erpnext-admin-credentials.txt.