Ver código fonte

Added new commands and cleanup (#2183)

Updated Cheatsheet
version-14
Valmik 8 anos atrás
committed by Shreyas Patil
pai
commit
400faa02fe
2 arquivos alterados com 12 adições e 10 exclusões
  1. +11
    -9
      frappe/docs/user/en/bench/resources/bench-commands-cheatsheet.md
  2. +1
    -1
      frappe/docs/user/pt/tutorial/before.md

+ 11
- 9
frappe/docs/user/en/bench/resources/bench-commands-cheatsheet.md Ver arquivo

@@ -25,9 +25,9 @@

###Config
* `bench config` - Change bench configuration
* `auto_update [on/off]` Enable/Disable auto update for bench
* `dns_multitenant [on/off]` Enable/Disable DNS Multitenancy
* `http_timeout [?]` Set http timeout
* `auto_update [on/off]` Enable/Disable auto update for bench
* `dns_multitenant [on/off]` Enable/Disable DNS Multitenancy
* `http_timeout` Set http timeout
* `restart_supervisor_on_update` Enable/Disable auto restart of supervisor
* `serve_default_site` Configure nginx to serve the default site on
* `update_bench_on_update` Enable/Disable bench updates on running bench...
@@ -44,6 +44,8 @@
* `sudoers ` Add commands to sudoers list for execution...
* `supervisor ` generate config for supervisor
* `add-domain ` add custom domain for site
* `firewall ` setup firewall and block all ports except 22, 80 and 443
* `ssh-port ` change the default ssh connection port


###Development
@@ -64,20 +66,20 @@
* `--source_sql` Initiate database with a SQL file
* `--install-app` Install app after installation`
* `bench use [site]` Sets a default site
* `bench drop-site` - Removes site from disk and database completely
* `bench drop-site` Removes site from disk and database completely
* `--root-login`
* `--root-password`
* `bench console` - Opens a IPython console in the bench venv
* `bench execute` - Execute a method inside any app.
* `bench console` Opens a IPython console in the bench venv
* `bench execute` Execute a method inside any app.
* Eg : `bench execute frappe.utils.scheduler.enqueue_scheduler_events`
* `bench mysql` - Opens SQL Console
* `bench run-tests` - Run tests
* `bench mysql` Opens SQL Console
* `bench run-tests` Run tests
* `--app` App Name
* `--doctype` DocType to run tests for
* `--test` Specific Test
* `--module` Run a particular module that has tests
* `--profile` Runs a Python profiler on the test
* `bench disable-production` - Disables production environment
* `bench disable-production` Disables production environment


###Scheduler


+ 1
- 1
frappe/docs/user/pt/tutorial/before.md Ver arquivo

@@ -44,4 +44,4 @@ Se estiver personalizando modelos de impressão, você precisa aprender a [líng

---

Quando estiver pronto, [tente construir uma aplicação de exemplo em Frappe]({{docs base_url}}/user/pt/tutorial/app)
Quando estiver pronto, [tente construir uma aplicação de exemplo em Frappe]({{docs_base_url}}/user/pt/tutorial/app)

Carregando…
Cancelar
Salvar