mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 16:36:25 +00:00
Added erpnext_shopify and paypal_integration for release repo
This commit is contained in:
commit
5d33ec4230
@ -407,7 +407,7 @@ def _prime_wheel_cache():
|
|||||||
prime_wheel_cache(bench='.')
|
prime_wheel_cache(bench='.')
|
||||||
|
|
||||||
@click.command('release')
|
@click.command('release')
|
||||||
@click.argument('app', type=click.Choice(['frappe', 'erpnext', 'shopping_cart']))
|
@click.argument('app', type=click.Choice(['frappe', 'erpnext', 'erpnext_shopify', 'paypal_integration']))
|
||||||
@click.argument('bump-type', type=click.Choice(['major', 'minor', 'patch']))
|
@click.argument('bump-type', type=click.Choice(['major', 'minor', 'patch']))
|
||||||
@click.option('--develop', default='develop')
|
@click.option('--develop', default='develop')
|
||||||
@click.option('--master', default='master')
|
@click.option('--master', default='master')
|
||||||
|
@ -8,12 +8,33 @@ user={{ user }}
|
|||||||
directory={{ sites_dir }}
|
directory={{ sites_dir }}
|
||||||
|
|
||||||
[program:frappe-worker]
|
[program:frappe-worker]
|
||||||
command={{ bench_dir }}/env/bin/python -m frappe.celery_app worker
|
command={{ bench_dir }}/env/bin/python -m frappe.celery_app worker -n jobs@%%h --time-limit 360 --loglevel INFO -Ofair
|
||||||
autostart=true
|
autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
stdout_logfile={{ bench_dir }}/logs/worker.log
|
stdout_logfile={{ bench_dir }}/logs/worker.log
|
||||||
stderr_logfile={{ bench_dir }}/logs/worker.error.log
|
stderr_logfile={{ bench_dir }}/logs/worker.error.log
|
||||||
user={{ user }}
|
user={{ user }}
|
||||||
|
stopwaitsecs=370
|
||||||
|
directory={{ sites_dir }}
|
||||||
|
|
||||||
|
[program:frappe-longjob-worker]
|
||||||
|
command={{ bench_dir }}/env/bin/python -m frappe.celery_app worker -n longjobs@%%h --time-limit 1500 --loglevel INFO
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
stdout_logfile={{ bench_dir }}/logs/worker.log
|
||||||
|
stderr_logfile={{ bench_dir }}/logs/worker.error.log
|
||||||
|
user={{ user }}
|
||||||
|
stopwaitsecs=1510
|
||||||
|
directory={{ sites_dir }}
|
||||||
|
|
||||||
|
[program:frappe-async-worker]
|
||||||
|
command={{ bench_dir }}/env/bin/python -m frappe.celery_app worker -n async@%%h --time-limit 1500 --loglevel INFO
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
stdout_logfile={{ bench_dir }}/logs/worker.log
|
||||||
|
stderr_logfile={{ bench_dir }}/logs/worker.error.log
|
||||||
|
user={{ user }}
|
||||||
|
stopwaitsecs=1510
|
||||||
directory={{ sites_dir }}
|
directory={{ sites_dir }}
|
||||||
|
|
||||||
[program:frappe-workerbeat]
|
[program:frappe-workerbeat]
|
||||||
|
@ -120,6 +120,8 @@ def setup_procfile(with_celery_broker=False, with_watch=False, bench='.'):
|
|||||||
procfile_contents = {
|
procfile_contents = {
|
||||||
'web': "./env/bin/frappe --serve --sites_path sites",
|
'web': "./env/bin/frappe --serve --sites_path sites",
|
||||||
'worker': "sh -c 'cd sites && exec ../env/bin/python -m frappe.celery_app worker'",
|
'worker': "sh -c 'cd sites && exec ../env/bin/python -m frappe.celery_app worker'",
|
||||||
|
'longjob_worker': "sh -c 'cd sites && exec ../env/bin/python -m frappe.celery_app -n longjobs@%%h worker'",
|
||||||
|
'async_worker': "sh -c 'cd sites && exec ../env/bin/python -m frappe.celery_app -n async@%%h worker'",
|
||||||
'workerbeat': "sh -c 'cd sites && exec ../env/bin/python -m frappe.celery_app beat -s scheduler.schedule'"
|
'workerbeat': "sh -c 'cd sites && exec ../env/bin/python -m frappe.celery_app beat -s scheduler.schedule'"
|
||||||
}
|
}
|
||||||
if frappe_version > 4:
|
if frappe_version > 4:
|
||||||
|
Loading…
Reference in New Issue
Block a user