2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-14 17:24:04 +00:00
Commit Graph

1326 Commits

Author SHA1 Message Date
gavin
2266b96880
Merge pull request #893 from gavindsouza/easy-inst-diff
fix(easy_install): log files saved with timestamp
2020-01-09 15:25:58 +05:30
Gavin D'souza
9cc6e2e2a8 fix(easy_install): datetime formatting 2020-01-09 15:22:29 +05:30
gavin
bf88572864
Merge pull request #894 from frappe/revert-888-faster-commands
Revert "perf: faster bench"
2020-01-07 16:06:36 +05:30
gavin
76d8b3d9f6
Revert "perf: faster bench" 2020-01-07 16:06:15 +05:30
Gavin D'souza
b80cecc917 fix(easy_install): log files saved with timestamp 2020-01-07 15:34:34 +05:30
gavin
e74c59dc73
Merge pull request #888 from gavindsouza/faster-commands
perf: faster bench
2020-01-07 14:04:37 +05:30
gavin
48db77318a
Merge pull request #892 from gavindsouza/setup-prod
fix(easy_install): overwrite config files
2020-01-06 12:51:14 +05:30
Gavin D'souza
aebd75990a fix(easy_install): overwrite config files 2020-01-06 12:11:28 +05:30
gavin
5e7e2c33e3
Merge pull request #889 from gavindsouza/easy-install-pip
fix(easy-install): install pip via pacman, minor fixes
2020-01-05 07:30:57 +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
Development for People
a3dc9e69b7 fix: bench.utils.get_sites updated to frappe.utils.get_sites
avoids issues with non sites folder like 'jupyter_notebooks'
2020-01-02 18:46:05 +05:30
Gavin D'souza
f251feae87 fix: install pip via pacman, minor fixes 2020-01-02 14:23:55 +05:30
Gavin D'souza
3b91d98d85 fix: compatibility fixes, better cpu utilization 2019-12-31 14:09:42 +05:30
Gavin D'souza
bb677d17df perf: Faster Commands execution by commands caching 2019-12-31 14:06:00 +05:30
gavin
bf4c2d06ab
Merge pull request #887 from gavindsouza/bench-docs
chore: updated README
2019-12-30 17:04:29 +05:30
Gavin D'souza
69055a8642 chore: updated README 2019-12-30 17:03:33 +05:30
gavin
bb7310f218
Merge pull request #886 from gavindsouza/git-stash
fix: git stash requires user details pre git v2.21
2019-12-27 17:30:52 +05:30
Gavin D'souza
a7a8790de6 fix: git stash requires user details pre git v2.21 2019-12-27 15:44:03 +05:30
gavin
9ede12ecd5
Merge pull request #885 from gavindsouza/easy-install-cleanup
fix(easy_install): updated sequence of package updates
2019-12-27 15:22:31 +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
c7381defd3 fix: updated sequence of package updates
chore: breakdown install_bench in smaller functions
2019-12-27 13:14:33 +05:30
gavin
e20a27e549
Merge pull request #880 from gavindsouza/playbooks-update
chore: Playbooks update
2019-12-27 11:06:16 +05:30
Gavin D'souza
186c0eafda feat: auto-stash changes in bench (tool) on update 2019-12-25 19:24:23 +05:30
Gavin D'souza
c93a25d336 feat: "bench update" from non-bench directory 2019-12-25 19:23:14 +05:30
gavin
8b630edcd6
Merge pull request #882 from zerodhatech/skip_assets
feat: skip build assets while doing get-app
2019-12-23 12:33:51 +05:30
Shridhar Patil
a65e9f09dc changed parameter name 2019-12-20 17:20:28 +05:30
Gavin D'souza
9e3d5c8587 chore: use shutil.which instead of find_executable 2019-12-20 14:45:56 +05:30
Shridhar Patil
b005720a2b skip asstes while doing get-app 2019-12-19 17:35:48 +05:30
Gavin D'souza
07d23d6911 chore: rename print function to log 2019-12-19 14:38:46 +05:30
Gavin D'souza
bc190a6d3b chore: check if locales are set to avoid install breaking for click
setup + minor fixes
2019-12-19 14:01:24 +05:30
Gavin D'souza
2b6260d63e fix: install missing dirmngr for debian installs 2019-12-18 18:19:17 +05:30
Gavin D'souza
b3feaa255b feat(easy-install): seperate logging and cleaner UI 2019-12-18 15:07:51 +05:30
Gavin D'souza
a922d198a2 chore: update deprecated usages 2019-12-18 14:14:12 +05:30
Gavin D'souza
fce86fa896 fix: fix permissions for python3 bench init 2019-12-18 14:11:05 +05:30
Gavin D'souza
c88940d5fc Merge branch 'playbooks-update' of github.com:gavindsouza/bench into playbooks-update 2019-12-18 10:51:27 +05:30
Gavin D'souza
e9205b5032 fix: remove npm to fix ubuntu 18 install conflicts 2019-12-18 10:49:38 +05:30
sahil28297
fb13dfb0c2 Revert "fix(fonts): remove unused setup_fonts method" (#881)
This reverts commit 0d4ace95a6.
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
gavin
cb112dfb36 Merge branch 'master' into playbooks-update 2019-12-17 10:09:06 +05:30
Chinmay Pai
d1ebb4c3b2
security(nginx): use only strong ciphers over ssl (#869)
* security(nginx): use only strong ciphers over ssl

* drop support for TLSv1 and TLSv1.1, and add support for TLSv1.3
* disable all ciphers else for EECDH+AESGCM and EDH+AESGCM
* disable session ticketing
* use secp384r1 as certificate curve
* enable strict transport security with preloading
* enable xss-protection

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* chore: explicitly state ssl on listening socket

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-16 16:36:55 +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
Marco Gabriel
72c70b23bf feat(easy_install): add support for debian 10
* Easy Installer did not support Debian 10 Buster, so I changed the playbooks to support Debian 10.
* Related Issue: #831
* Tested in a newly deployed Debian 10 Buster running on KVM and in a brand new deployed LXC Container (--container) also running fine.
2019-12-15 10:19:33 +05:30
Chinmay Pai
75ffa0325e
fix: use six to check for string types (#874)
fixes issue where unicode keyword does not exist for python3:

Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/frappe/.bench/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/.bench/bench/commands/setup.py", line 22, in setup_nginx
    make_nginx_conf(bench_path=".", yes=yes)
  File "/home/frappe/.bench/bench/config/nginx.py", line 13, in make_nginx_conf
    sites = prepare_sites(config, bench_path)
  File "/home/frappe/.bench/bench/config/nginx.py", line 100, in prepare_sites
    sites_configs = get_sites_with_config(bench_path=bench_path)
  File "/home/frappe/.bench/bench/config/nginx.py", line 217, in get_sites_with_config
    if isinstance(domain, str) or isinstance(domain, unicode):
NameError: name 'unicode' is not defined

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-15 10:16:21 +05:30
Development for People
7051aa3d4e fix(nginx): add redirect rules to avoid duplicate content 2019-12-07 11:35:21 +05:30
gavin
63737e3bae
Merge pull request #868 from Thunderbottom/cron-fix
fix(cron): change cron command for renewing ssl
2019-12-05 15:58:46 +05:30
Chinmay D. Pai
17b447591f
fix(cron): change cron command for renewing ssl
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-05 15:23:13 +05:30
Gavin D'souza
8b9c24559f Merge branch 'playbooks-update' of github.com:gavindsouza/bench into playbooks-update 2019-12-04 18:43:41 +05:30
Gavin D'souza
498e777b57 fix(ansible): deprecated warnings for | expression 2019-12-04 18:40:07 +05:30