Skip to content
Rushabh Mehta edited this page Jul 10, 2014 · 7 revisions

Bench2

Coming Soon!

Installation

Easy to install

  1. curl [url] | sh the script

Install for user frappe-bench

Usage

  1. bench init [path] - create sites, app, folder, get-app frappe, setup-auto-update, setup-backups
  2. bench get-app [app] - git checkout - to app, run setup.py
  3. bench new-site [sitename] - add site1.local via dnsmasq
  4. bench update
  5. bench new-app [appname]
  6. sudo bench setup-nginx [port] - scrap old setting and make new one (note if conflicting config exits)
  7. sudo bench setup-supervisor - add config file
  8. bench setup-auto-update off - check periodically for updates
  9. bench setup-backups off
  10. bench activate

Bench Update

  1. sudo bench update - pull, patch, build, restart supervisor
  2. bench update pull-only
  3. bench update pull-and-patch
  4. bench update pull-and-build

Logs

Command logs

  1. log all commands & response as json
  2. log auto-update

System info

  1. diskspace
  2. memory usage
  3. mysql processlist (len)
  4. supervisor
  5. celery

Bench Agent

  1. poll satellite
    1. get instructions
    2. send logs