From 400faa02fe88a0aa2adad8a658b9924fd31c54d5 Mon Sep 17 00:00:00 2001 From: Valmik Date: Mon, 24 Oct 2016 13:13:08 +0530 Subject: [PATCH] Added new commands and cleanup (#2183) Updated Cheatsheet --- .../resources/bench-commands-cheatsheet.md | 20 ++++++++++--------- frappe/docs/user/pt/tutorial/before.md | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/frappe/docs/user/en/bench/resources/bench-commands-cheatsheet.md b/frappe/docs/user/en/bench/resources/bench-commands-cheatsheet.md index 4787a8dd7b..e1014311dc 100755 --- a/frappe/docs/user/en/bench/resources/bench-commands-cheatsheet.md +++ b/frappe/docs/user/en/bench/resources/bench-commands-cheatsheet.md @@ -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 diff --git a/frappe/docs/user/pt/tutorial/before.md b/frappe/docs/user/pt/tutorial/before.md index f1d12c7e89..866857e96a 100755 --- a/frappe/docs/user/pt/tutorial/before.md +++ b/frappe/docs/user/pt/tutorial/before.md @@ -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)