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
c8fa035e4c
Merge pull request #920 from frappe/revert-907-pip-pin
...
Revert "fix: pip pinned to 19.3.1 after v20 breaking"
2020-02-10 14:57:17 +05:30
gavin
66dd5af087
Revert "fix: pip pinned to 19.3.1 after v20 breaking"
2020-02-10 14:56:55 +05:30
gavin
857868eb5c
Merge pull request #914 from gavindsouza/migrate-env-fix
...
refactor: bench migrate-env command
2020-02-10 14:07:07 +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
Wing Yung Chan
e3bfe3a82d
docs: fixes in easy_install.md ( #917 )
...
Fixed two minor typos
2020-02-08 03:07:13 +05:30
gavin
5a7580fcca
Merge pull request #915 from gavindsouza/bench-pip
...
feat: bench pip instead of using ./env/bin/pip
2020-02-07 14:30:46 +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
50ef73933c
Merge pull request #912 from gavindsouza/exec-anywhere
...
feat: execute bench commands in any sub directories of frappe-bench
2020-02-05 11:48:11 +05:30
Gavin D'souza
92cd942fcf
refactor: change_working_directory
optimizations
2020-02-02 00:19:58 +05:30
Gavin D'souza
2257f86fee
feat: execute bench/frappe commands from anywhere inside a bench
...
directory
2020-02-01 18:58:37 +05:30
gavin
e06d9a2cf5
Merge pull request #909 from gavindsouza/venv-check
...
fix: virtualenv check for installing requirements
2020-01-23 13:49:33 +05:30
Bernhard Sirlinger
40f7e09c0f
fix: issue when ignore_exist is set and the path already exists 🐛 ( #910 )
...
See 7fb1484b7f (diff-237d6b07e1835fbd8e51e251f66b2ec0)
where the logic was changes to exclude handling this edge case
2020-01-23 12:33:14 +05:30
gavin
be2dd1b31a
Merge pull request #911 from gavindsouza/perms-fix
...
fix: chown frappe_user home directory
2020-01-23 12:29:06 +05:30
Gavin D'souza
4474f463dc
fix: chown frappe_user home directory
2020-01-22 18:05:02 +05:30
Gavin D'souza
3ea19e9533
chore: bench.utils format, imports sort, spaces
2020-01-22 15:30:06 +05:30
Gavin D'souza
63128a21bf
fix: check if virtual env (using pip refs)
2020-01-22 15:19:38 +05:30
Gavin D'souza
b9bb9440d9
fix: update packages even if pip not in path
2020-01-22 12:54:58 +05:30
Gavin D'souza
3b06683ebf
fix: checks for bench requirements to be installed without the --user
...
flag via pip
references: https://stackoverflow.com/questions/1871549/determine-if-python-is-running-inside-virtualenv
2020-01-22 12:05:27 +05:30
Chinmay Pai
654f1e9c7b
chore: fix install-app in readme ( #908 )
...
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-01-22 00:31:37 +05:30
gavin
d499ae48f4
Merge pull request #907 from gavindsouza/pip-pin
...
fix: pip pinned to 19.3.1 after v20 breaking
2020-01-21 17:51:25 +05:30
Gavin D'souza
7498c8e497
fix: pip pinned to 19.3.1 after v20 breaking
...
reference: https://github.com/pypa/pip/issues/7217
2020-01-21 17:49:18 +05:30
Chinmay Pai
0daa5c45ed
docs: add db_host and db_port options for new-site ( #871 ) ( #906 )
...
* Update installation docs to show new options
* docs: fix indentation and make the command optional
Co-authored-by: Oshosanya Michael <michaeloshosanya@gmail.com>
2020-01-21 15:29:17 +05:30
Gavin D'souza
03c4d9610a
chore: fixed validate branch on update
2020-01-21 14:27:00 +05:30
gavin
8d792190b4
Merge pull request #904 from barredterra/patch-1
...
fix: bump MariaDB version
2020-01-20 10:46:52 +05:30
gavin
f60466caaf
Merge pull request #899 from gavindsouza/bench-cleanup
...
feat: rollback on bench init
2020-01-20 10:46:09 +05:30
gavin
fe94787f8c
Merge pull request #901 from gavindsouza/bench-docs-refact
...
chore: updated Bench docs
2020-01-20 10:41:47 +05:30
gavin
80a72026ef
Merge pull request #903 from ckosiegbu/patch-3
...
fix: validate branch in bench update
2020-01-20 09:45:14 +05:30
Gavin D'souza
b85651653b
fix: validate branch error message + cleanup
2020-01-20 09:43:51 +05:30
ckosiegbu
5762724cc7
fix: validate branch in bench update
...
bench update assumes that erpnext is an installed app in the bench. This is a wrong assumption. This work around checks for the intersection of installed apps with the list ['frappe', 'erpnext'] and only attempts to get the current branch of apps that occur in the intersection. This way, if erpnext is not installed (very likely for those using frappe only to build their own apps) there wont be an error when get_current_branch is called for erpnext. The need to perform the kind of check being performed in validate_branch is a strong case for considering apps being able to add "bench update" hooks in their hooks.py
See this topic https://discuss.erpnext.com/t/bench-update-error-no-such-file-or-directory-apps-erpnext/56932?u=chude_osiegbu
2020-01-20 09:43:39 +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
f75f9ff706
chore: add license to readme
2020-01-16 19:29:13 +05:30
Gavin D'souza
90c6dacb43
chore: updated category on discuss forum
2020-01-16 18:48:04 +05:30
Gavin D'souza
f48bb5a130
chore: updated and consolidated readme
...
- added visual hierarchy and structure to text
- added table of contents
- breakdown additional information about each section in their respective
files
2020-01-16 17:48:43 +05:30
Gavin D'souza
869d27ff65
chore: updated pull request template
2020-01-16 14:23:43 +05:30
Gavin D'souza
8b63e72443
chore: updated issue templates
2020-01-16 14:22:29 +05:30
Gavin D'souza
c64a7e90e6
fix(utils): sort imports, add parenthesis on ambigupus expr
2020-01-15 16:29:08 +05:30
Gavin D'souza
1b0008d709
fix: single process to pip install requirements, quiet flag added
2020-01-15 14:24:03 +05:30
Gavin D'souza
71af7320f2
fix: ansible install on versioned pip
2020-01-15 13:36:32 +05:30
Gavin D'souza
7fb1484b7f
fix: seperate colors from log, change exception
...
changes: thrown if bench dir exists on bench init
style: fixed whitespaces and formatting
2020-01-15 13:33:27 +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 D'souza
e32281557f
feat: added bench.utils.log and updated is_bench_directory api
2020-01-10 14:48:09 +05:30
Gavin D'souza
ef1a624556
fix(cli): give warn that commands are not executed in a bench folder
2020-01-10 14:45:13 +05:30
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