2
0
mirror of https://github.com/frappe/bench.git synced 2025-02-09 22:28:26 +00:00

178 Commits

Author SHA1 Message Date
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
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 Pai
459432b195
fix: incorrect import statement
use six.moves instead of six
2019-12-15 13:45:17 +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
Saurabh
ee8a8fbbfb fix: provision to pass container flag while setting up swap 2019-04-25 18:58:51 +05:30
Sagar Vora
d55d29b8fd fix: syntax error 2019-01-29 23:59:42 +05:30
Sagar Vora
47a9aca0e7 fix: importing reload caused issues in python2 2019-01-29 23:52:31 +05:30
Ameya Shenoy
479ab08deb
feat(release): option to prevent frontport
Option to prevent frontporting code to new branches, for example
v11(staging-fixes) should go into v12(develop)

Reason: To offload tasks to bot for normal releases, which can be done
without conflicts on a regular basis. However the frontporting releases
need manual intervention since merge conflicts arise.
2018-11-19 17:42:28 +05:30
Chinmay Pai
15d2c8df16
[fix] reload(): use importlib for python3
reload() is an inbuilt function in python2 but has been moved to importlib since python3.4.

source: https://docs.python.org/3/library/importlib.html#importlib.reload

Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
2018-09-21 13:47:21 +05:30
Chinmay Pai
0c7b92b0f1
[minor] setup: fix overwrite existing site
fixed a casing issue where entering "N" would overwrite the site.

Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
2018-08-29 12:58:04 +05:30
Ameya Shenoy
642935a8a8
removed pip lockdown on 9.0.3 2018-08-15 18:02:03 +00:00