Gavin D'souza
2713a2e9cd
fix: move update to utils
...
- update.py
* chore: drop auto_update options
* fix: reloading bench modules post requirements setup (seemed
unecessary and randomly crashed `bench start` process)
* docs: added help for commands
* chore: deprecated switch-to-master function
- utils.py
* sorted imports for readability
* formatting and consistency
* dropped unused setup_auto_update
* dropped broken pre_upgrade function
Signed-off-by: Gavin D'souza <gavin18d@gmail.com>
2020-02-18 17:19:42 +05:30
Gavin D'souza
f1ea6fce3f
chore: drop auto update bench via cronjob
2020-02-18 17:07:26 +05:30
Gavin D'souza
063e4a85be
refactor: bench.command.install
...
* sorted imports
* consistent formatting and use of docstrings
* help added for click commands
2020-02-18 12:24:18 +05:30
Gavin D'souza
9621686597
refactor: consistent help action in click, formatting and sorted imports
2020-02-18 11:57:23 +05:30
Gavin D'souza
53e2272a66
refactor: bench.commands.config
...
* sorted imports
* made it a little DRY
* code formatting
* added help
2020-02-18 11:50:53 +05:30
Gavin D'souza
e4355001e7
fix: remove unnecessary - commands aliases
2020-02-18 10:56:37 +05:30
Gavin D'souza
214a2093eb
fix: added aliases for click commands to convert _ seperated commands to
...
- seperated ones in config group
eg: `bench config auto-update on` functions same as `bench config
auto_update on`
2020-02-18 10:54:32 +05:30
Gavin D'souza
1f488a8bfd
docs: bench.command.make
...
added help for make commands
2020-02-17 17:24:17 +05:30
Gavin D'souza
6bfe601dc9
Merge branch 'master' of github.com:frappe/bench into bench-cmd-help
2020-02-17 16:40:34 +05:30
Gavin D'souza
1442cf6980
refactor: bench.commands.setup
...
* updated help for all commands
* sorted imports
* code formatting and consistent quotes
2020-02-17 16:35:52 +05:30
Gavin D'souza
7ccc275792
fix(lets-encrypt): run command non interactively if flag passed
2020-02-11 14:02:47 +05:30
Chinmay D. Pai
be36a1411c
feat(bench update): allow pull-only update on specified apps
...
* renamed method pull_all_apps to pull_apps
* allow specifying a list of applications to be updated with:
bench update --pull --apps frappe,erpnext
* if no applications are specified, all apps present inside apps.txt
will be pulled
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-02-10 15:01:12 +05:30
Gavin D'souza
1ae9bfb568
Merge branch 'master' of github.com:frappe/bench into migrate-env-fix
2020-02-09 13:17:00 +05:30
Gavin D'souza
1259b089c8
refactor: change "no_backup" variable and cleanup comments
2020-02-09 13:14:06 +05:30
Gavin D'souza
f0596c5928
feat: bench pip *
...
Directly install/update/remove packages from your env using bench pip
commands. Pretty much just like using pip
To check help don't add the --help flag, use the -h flag instead, use the pip help command. For example, checking help for pip install can be done by
bench pip help install
bench pip install -h
2020-02-06 15:24:26 +05:30
Gavin D'souza
0c29bba659
refactor: bench migrate-env command
...
* moved from __init__ to utils and updated sequence of installing
applications in env
* chanaged import namespaces
2020-02-06 01:32:50 +05:30
gavin
8d792190b4
Merge pull request #904 from barredterra/patch-1
...
fix: bump MariaDB version
2020-01-20 10:46:52 +05:30
Raffael Meyer
a2ea3d90c5
fix: bump MariaDB version
...
Update MariaDB version from `10.2` to `10.3` to match requirement in README.
By the way, is there any reason for the empty string being the default password and version?
```py
def install_maridb(mysql_root_password='', version=''):
# ...
```
2020-01-17 20:01:38 +01:00
Gavin D'souza
71af7320f2
fix: ansible install on versioned pip
2020-01-15 13:36:32 +05:30
Gavin D'souza
f0c1893565
feat: ability to rollback failed bench init
2020-01-15 13:31:57 +05:30
gavin
5271e1ea2a
Merge pull request #895 from gavindsouza/new-commands
...
feat: "bench find", print log api
2020-01-14 10:55:38 +05:30
Gavin D'souza
963b2f9ce5
feat: added bench find command
2020-01-10 20:42:13 +05:30
gavin
76d8b3d9f6
Revert "perf: faster bench"
2020-01-07 16:06:15 +05:30
gavin
e74c59dc73
Merge pull request #888 from gavindsouza/faster-commands
...
perf: faster bench
2020-01-07 14:04:37 +05:30
gavin
9559fe0c76
Merge pull request #857 from developmentforpeople/fix-get-sites-as-frappe
...
fix: bench.get_sites now do same checks to validate a site folder like frappe.utils.get_sites
2020-01-03 15:11:20 +05:30
Gavin D'souza
8764813121
fix: "faster" get_sites function
...
chore: dropped unused get_sites_dir function
style: pythonic "is not" usage
2020-01-02 18:47:13 +05:30
Gavin D'souza
bb677d17df
perf: Faster Commands execution by commands caching
2019-12-31 14:06:00 +05:30
gavin
be162b542d
Merge pull request #884 from gavindsouza/bench-update
...
feat: Bench update
2019-12-27 13:48:53 +05:30
Gavin D'souza
c93a25d336
feat: "bench update" from non-bench directory
2019-12-25 19:23:14 +05:30
Shridhar Patil
a65e9f09dc
changed parameter name
2019-12-20 17:20:28 +05:30
Shridhar Patil
b005720a2b
skip asstes while doing get-app
2019-12-19 17:35:48 +05:30
sahil28297
fb13dfb0c2
Revert "fix(fonts): remove unused setup_fonts method" ( #881 )
...
This reverts commit 0d4ace95a66f1f373a151ea48367325b1520970c.
2019-12-17 15:05:19 +05:30
Chinmay Pai
0d4ace95a6
fix(fonts): remove unused setup_fonts method ( #878 )
...
this method replaces existing system fonts directory under /etc/fonts
and /usr/share/fonts with fonts that are probably obsolete by now and
are no longer used.
removing this method so that it does not mess with anybody's system
fonts
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-17 12:51:16 +05:30
Chinmay D. Pai
cac66a6b88
fix: invalid syntax for click option
...
ughhhhhhhhhh
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-15 13:59:12 +05:30
Chinmay Pai
459432b195
fix: incorrect import statement
...
use six.moves instead of six
2019-12-15 13:45:17 +05:30
Chinmay D. Pai
d1a3017172
fix(get-app): handle existing directory and other formatting changes
...
* if a directory for the application already exists, provide user with 2
options:
* ask to remove the directory and reclone (overwrite)
* ask if the user wants to reinstall the application
* separate get_app_name from get_app
* move building assets and postprocessing to install_app method
* make formatting changes to the code for flake8
* use reload_module from six instead of builtins
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-15 12:06:12 +05:30
Chinmay Pai
d2d577201d
fix: remove unused method and use six to reload module ( #875 )
...
* remove download_chart_of_accounts method as it is not being used
anywhere
* use reload_module from six for flake8 fixes
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-15 10:41:27 +05:30
gavin
16da871a8b
Merge pull request #852 from zerodhatech/set_redis_hosts
...
chore(bench-cli): commands to set redis hosts
2019-11-04 17:11:21 +05:30
gavin
13c4db4c2e
chore(style): format string indents
2019-11-04 17:10:39 +05:30
Shridhar Patil
787625fe28
commands to set redis hosts
2019-11-03 10:59:56 +05:30
Suraj Shetty
f7bec398ff
feat: Option to provide path to Procfile ( #833 )
...
feat: Option to provide path to Procfile
2019-09-12 23:21:41 +05:30
Rucha Mahabal
6dbf6b9846
fix: no-backup option argument ( #842 )
...
* fix: --no-backup option set to 1 by default
* Update bench/commands/__init__.py
Co-Authored-By: Chinmay Pai <chinmaydpai@gmail.com>
2019-09-10 17:59:36 +05:30
Faris Ansari
5bedd2cb52
feat: Option to provide path to Procfile
2019-08-24 19:55:32 +05:30
Aditya Hase
bdda0419ea
fix: Allow skipping assets
2019-07-23 19:34:42 +05:30
Saurabh
d32d905567
fix: validate branch before update
2019-07-22 16:10:34 +05:30
Aditya Hase
e24ca16c90
fix: Initialize bench with Python 3
2019-06-21 10:52:13 +05:30
Saurabh
22f3bc6c36
fix: typo fix
2019-06-19 18:03:04 +05:30
Saurabh
9242b927ca
fix: take backup before pulling the code and make site available after restarting the processes
2019-06-19 17:25:52 +05:30
Saurabh
d39effc2f1
Merge pull request #798 from saurabh6790/mariadb_version
...
enhancement: provision to pass mariadb version
2019-05-07 08:55:32 +05:30
Saurabh
8126143815
enhancement: provision to pass mariadb version
2019-05-07 08:51:54 +05:30