Ankush Menat
9bb3644ee0
Merge branch 'staging' into v5.x
2023-01-02 17:03:59 +05:30
Ankush Menat
b0fec0fd4e
Merge branch 'develop' into staging
2023-01-02 17:02:56 +05:30
Ankush Menat
23eede5fd3
fix: version check backward compatibility ( #1409 )
...
This code wasn't triggering because VersionNotFound exception gets
thrown before it ever reaches to this point.
2023-01-02 16:03:33 +05:30
Ankush Menat
ba853c943b
chore: incorrect license identifiers
2023-01-02 15:53:05 +05:30
jiangying
8903649159
chore: typo in readme ( #1407 )
2022-12-31 13:50:21 +05:30
Ankush Menat
228aeaf2fd
fix: print help when no args passed
...
[skip ci]
2022-12-19 11:59:21 +05:30
Ankush Menat
a987c1e9ae
style: chmod+x, format, space -> tabs
2022-12-19 11:59:21 +05:30
Ankush Menat
80b58d9999
chore: typo
...
Co-Authored-By: Athul Cyriac Ajay <athul8720@gmail.com>
2022-12-15 17:00:04 +05:30
Ankush Menat
e1ec20f723
Merge pull request #1397 from athul/new-easy-install
...
feat: New™️ easy-install.py
2022-12-15 16:56:52 +05:30
Ankush Menat
687044f123
ci: add concurrency group
2022-12-15 16:50:19 +05:30
Athul Cyriac Ajay
e76c7dccf5
feat: add GHA tests
...
chore: added reading from env when rerunning script
- Makes current site as default
2022-12-14 17:42:24 +05:30
Athul Cyriac Ajay
9313777276
chore: Update Readme and changed password generated method
...
Co-authored-by: @ankush
2022-12-13 13:18:09 +05:30
Ankush Menat
0234c080c8
ci: run tests against current hotfix branches ( #1402 )
...
- If this isn't dont then we have no way of knowing until frappe/erpnext
are actually released.
- Skip asset building where it doesn't matter
2022-12-12 21:48:38 +05:30
semantic-release-bot
1cd7088dab
chore(release): Bumped to Version 5.15.2
...
## [5.15.2](https://github.com/frappe/bench/compare/v5.15.1...v5.15.2 ) (2022-12-12)
### Bug Fixes
* ignore supervisor restart failures where possible ([#1400 ](https://github.com/frappe/bench/issues/1400 )) ([7a63f4f
](7a63f4f461
))
* install wheel in venv ([4996afb
](4996afb012
))
2022-12-12 08:42:52 +00:00
Ankush Menat
06181f4231
Merge branch 'staging' into v5.x
2022-12-12 14:11:33 +05:30
Ankush Menat
b68e6eb033
Merge branch 'develop' into staging
2022-12-12 14:11:18 +05:30
Ankush Menat
7a63f4f461
fix: ignore supervisor restart failures where possible ( #1400 )
...
* fix: ignore supervisor restart failures where possible
Ignores proc manager restart failure during:
- App install
- App uninstall
Reason:
- You might not have setup prod yet
- This is useful during docker image building where proc manager wont be
running **yet**.
* ci: dont fail-fast
matrix has no dependency.
2022-12-12 14:08:04 +05:30
Ankush Menat
2d0ba72ae3
Merge pull request #1401 from frappe/p517
...
fix: install wheel in venv
2022-12-12 13:26:10 +05:30
Ankush Menat
4996afb012
fix: install wheel in venv
...
closes https://github.com/frappe/frappe/issues/18718
2022-12-12 13:12:37 +05:30
Athul Cyriac Ajay
3ff7bfb35f
chore: get exact versions from example.env file
2022-12-06 19:33:47 +05:30
Athul Cyriac Ajay
7c8ce31a8d
chore: Added logging and removed git dependency
...
Also added
- New methods for printing
- Better env file management
- Better password generation
- Added zip repository downloads
- default container version set to v14
2022-12-05 00:37:39 +05:30
Athul Cyriac Ajay
044e01befd
feat: New easy-install.py
...
Supports docker container setup with production and dev instances
2022-12-01 16:24:47 +05:30
semantic-release-bot
3547a2d3aa
chore(release): Bumped to Version 5.15.1
...
## [5.15.1](https://github.com/frappe/bench/compare/v5.15.0...v5.15.1 ) (2022-11-29)
### Bug Fixes
* correct python path for migrate_env ([61e0f4a
](61e0f4acbf
))
* dont attempt migrating to active virtualenv ([0e59159
](0e59159e11
))
* install one app at a time, frappe first ([4f0193c
](4f0193ca93
))
* migrate_env silent failures ([7f1c5ad
](7f1c5ad9c6
))
2022-11-29 07:48:57 +00:00
Ankush Menat
787aac5f3e
Merge branch 'staging' into v5.x
2022-11-29 13:17:57 +05:30
Ankush Menat
7e4f0eaf1f
Merge branch 'develop' into staging
2022-11-29 13:16:31 +05:30
Ankush Menat
ca2545052d
Merge pull request #1396 from frappe/migrate_env
...
fix: migrate env
2022-11-29 13:11:17 +05:30
Ankush Menat
0e59159e11
fix: dont attempt migrating to active virtualenv
2022-11-29 12:49:19 +05:30
Ankush Menat
e37df969c1
refactor(migrate_env): virtualenv -> venv
2022-11-29 12:40:11 +05:30
Ankush Menat
4f0193ca93
fix: install one app at a time, frappe first
2022-11-29 12:33:53 +05:30
Ankush Menat
61e0f4acbf
fix: correct python path for migrate_env
...
Currently it's executing env directory which would never work.
2022-11-29 12:23:49 +05:30
Ankush Menat
7f1c5ad9c6
fix: migrate_env silent failures
2022-11-29 12:23:13 +05:30
semantic-release-bot
62202039ad
chore(release): Bumped to Version 5.15.0
...
# [5.15.0](https://github.com/frappe/bench/compare/v5.14.4...v5.15.0 ) (2022-11-28)
### Bug Fixes
* FileNotFound bug ([#1383 ](https://github.com/frappe/bench/issues/1383 )) ([965e178
](965e178e83
))
* restart proc manager if set in config ([#1391 ](https://github.com/frappe/bench/issues/1391 )) ([c59d1ed
](c59d1edee5
))
### Features
* add `max_requests` to gunicorn args ([b57838f
](b57838f366
))
### Performance Improvements
* single worker in development install ([#1392 ](https://github.com/frappe/bench/issues/1392 )) ([9c80f5d
](9c80f5d24f
))
2022-11-28 07:43:56 +00:00
Ankush Menat
c886d74a03
Merge branch 'staging' into v5.x
2022-11-28 13:12:21 +05:30
Ankush Menat
8b3452a2d5
Merge branch 'develop' into staging
2022-11-28 13:10:03 +05:30
Ankush Menat
c59d1edee5
fix: restart proc manager if set in config ( #1391 )
2022-11-28 13:05:00 +05:30
Ankush Menat
9c80f5d24f
perf: single worker in development install ( #1392 )
...
Most developers don't need 3 separate workers in development. This changes procfile to use single worker to consume from all queues in development.
Pros:
- Lighter development setups
Cons:
- Not "equivalent to production" - not required in most cases so eh.
You can still edit procfile to start whatever process you want anyway.
2022-11-24 15:29:34 +05:30
Ankush Menat
d198465228
Merge pull request #1387 from ankush/max_requests
...
feat: add `max_requests` to gunicorn args
2022-11-23 15:04:10 +05:30
Ankush Menat
c4305fd528
style: format everything w black
2022-11-23 14:35:01 +05:30
Ankush Menat
f45db01d9a
chore: remove deprecated easy install script
2022-11-23 14:34:24 +05:30
Ankush Menat
d3cb7eceb4
ci: fix flake8 url
2022-11-23 14:34:07 +05:30
Ankush Menat
b57838f366
feat: add max_requests
to gunicorn args
...
As gunicorn is long running process, potentially running for days
without restart the workers might start accumulating garbage that's
never cleaned up and memory usage spikes after some use.
This largely happens because of third-party module imports like pandas,
openpyxl, numpy etc. All of these are required only for few requests and
can be easily re-loaded when required.
`max_requests` restarts the worker after processing number of configured
requests.
How to use?
- If you have more than 1 gunicorn workers then this is automatically
enabled. You can tweak the max_requests parameter with
`gunicorn_max_requests` key in common_site_config
- If you just have 1 gunicorn worker (not recommended) then this is not
automatically enabled as restarting the only worker can cause spikes
in response times whenever restart is triggered.
2022-11-23 11:16:02 +05:30
Ameen Ahmed
965e178e83
fix: FileNotFound bug ( #1383 )
2022-11-17 18:56:31 +05:30
Ankush Menat
738d623117
chore: add editorconfig
2022-10-27 16:16:23 +05:30
Ankush Menat
09274ed305
docs: remove easy install from docs ( #1380 )
...
https://discuss.erpnext.com/t/deprecation-easy-install-script-is-no-longer-supported/96245/3
[skip ci]
2022-10-20 16:09:06 +05:30
semantic-release-bot
6fb8078d72
chore(release): Bumped to Version 5.14.4
...
## [5.14.4](https://github.com/frappe/bench/compare/v5.14.3...v5.14.4 ) (2022-10-14)
### Bug Fixes
* no-git support for dependency resolver ([#1368 ](https://github.com/frappe/bench/issues/1368 )) ([fcbc2ea
](fcbc2eaa47
))
* use os.remove instead of shutil.rmtree for symlinks ([#1372 ](https://github.com/frappe/bench/issues/1372 )) ([9fd15f6
](9fd15f6fdd
))
2022-10-14 06:30:23 +00:00
Ankush Menat
9da444da39
Merge branch 'staging' into v5.x
2022-10-14 11:58:46 +05:30
Ankush Menat
a5cc850813
Merge branch 'develop' into staging
2022-10-14 11:57:48 +05:30
Devin Slauenwhite
9fd15f6fdd
fix: use os.remove instead of shutil.rmtree for symlinks ( #1372 )
2022-09-29 19:38:54 +05:30
Aradhya Tripathi
fcbc2eaa47
fix: no-git support for dependency resolver ( #1368 )
...
* feat: introducing support for no-git
refactor: lint
* feat: added support for validating git repos
* refactor: removed formatting changes
2022-09-08 11:27:34 +05:30
semantic-release-bot
529943891d
chore(release): Bumped to Version 5.14.3
...
## [5.14.3](https://github.com/frappe/bench/compare/v5.14.2...v5.14.3 ) (2022-08-28)
### Bug Fixes
* bad URL in raw.githubusercontent.com ([#1363 ](https://github.com/frappe/bench/issues/1363 )) ([589f7a4
](589f7a400e
))
* parsing error ([#1364 ](https://github.com/frappe/bench/issues/1364 )) ([4bc3a08
](4bc3a086f2
))
* use ref param instead of branch for get_required_deps (GitHub contents API) ([#1362 ](https://github.com/frappe/bench/issues/1362 )) ([9131ba0
](9131ba05db
))
2022-08-28 13:19:45 +00:00