2
0
mirror of https://github.com/frappe/bench.git synced 2025-02-04 20:08:24 +00:00

1020 Commits

Author SHA1 Message Date
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
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
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 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 D. Pai
699705f64b
fix: incorrect import statement
use six.moves instead of six

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-15 13:46:14 +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
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
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
cd711b04dc fix: bench update compatible venv installed pkg 2019-11-29 16:48:52 +05:30
Gavin D'souza
489d3b2501 fix: update bench requirements for user 2019-11-26 18:08:50 +05:30
Gavin D'souza
ea106e89c9 fix: dont install bench dependencies in env 2019-11-26 11:24:40 +05:30
gavin
1d7e3ca383
Merge pull request #861 from gavindsouza/pinned-requirements
fix: add upgrade flags to pip install
2019-11-18 12:16:10 +05:30
Gavin D'souza
12912c5943 style: better readability and removed redundant flag 2019-11-17 16:06:24 +05:30
Gavin D'souza
025665a093 fix: update pinned requirements
after pinning requirements, to avoid incompatible 2nd level
dependencies of packages, pass the -U flag
2019-11-17 04:39:33 +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
Paul Banks
b8cc8b03f7 Crontab: Fix for ArchLinux which uses the FreeBSD syntax 2019-10-25 08:28:49 +00:00
gavin
ce6b4c8a11 fix: git depth, fixed requirements (#845) 2019-10-21 15:48:38 +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
Aditya Hase
893cb884ee
fix(security): Force download html, svg and xml files
Same as https://github.com/frappe/frappe/pull/7074
for public files in production environment
2019-09-05 15:19:40 +05:30
Faris Ansari
5bedd2cb52 feat: Option to provide path to Procfile 2019-08-24 19:55:32 +05:30
Sahil Khan
933d7a15b8 fix(release): syntax error 2019-07-26 15:41:28 +05:30
Aditya Hase
46566cd9ac fix(ansible): Make everything verbose 2019-07-23 19:50:07 +05:30
Aditya Hase
bdda0419ea fix: Allow skipping assets 2019-07-23 19:34:42 +05:30
Aditya Hase
46b78f4a53 fix: Remove the infamous print style 2019-07-23 19:32:30 +05:30
Saurabh
d32d905567 fix: validate branch before update 2019-07-22 16:10:34 +05:30
Saurabh
ac51286f3c
Merge pull request #816 from adityahase/py3
fix: Initialise bench with Python 3
2019-07-22 15:32:50 +05:30
Sahil Khan
5699204a58 fix(release): accomodate future branches 2019-07-19 17:29:07 +05:30
Sahil Khan
dd78011717 fix(release): handle release for multiple branches 2019-07-19 17:08:09 +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
Faris Ansari
75b0901af4
fix: Build assets only for downloaded app (#802) 2019-05-15 14:26:07 +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
Aditya Hase
b7f568aec2 fix: Change ownership of all log and config files 2019-04-13 10:55:41 +05:30
Faris Ansari
93264c6b71
Revert "perf: Remove unwanted check (#788)" (#790)
This reverts commit 431e96909c1eac3496bbe304aac51299f538640d.
2019-04-13 10:11:25 +05:30
Suraj Shetty
c16c8e69f0 Revert "fix: Change ownership of all log and config files (#787)"
This reverts commit 2435cb6b2ea9e182b417c6f16b762647340aa573.
2019-04-13 00:01:00 +05:30
Suraj Shetty
431e96909c perf: Remove unwanted check (#788)
`get_frappe_commands` returns a list of valid frappe commands which is used to check if the user command is valid. But this is unnecessary because even without it bench can report the command not found error. This saves ~1 second.
2019-04-12 21:03:15 +05:30
Aditya Hase
2435cb6b2e fix: Change ownership of all log and config files (#787)
Without this, after  ` sudo bench setup production ` file ownership of all log files isn't changed and requires human intervention.
2019-04-12 15:32:17 +05:30