mirror of
https://github.com/frappe/bench.git
synced 2024-11-14 17:24:04 +00:00
fix: frappe app can exist without public folder
other change: * sync apps.txt manually after dep apps are also setup; right before build step
This commit is contained in:
parent
5170048d6d
commit
13ed9beca5
@ -355,7 +355,6 @@ def install_app(
|
|||||||
exec_cmd("yarn install", cwd=app_path)
|
exec_cmd("yarn install", cwd=app_path)
|
||||||
|
|
||||||
bench = Bench(bench_path)
|
bench = Bench(bench_path)
|
||||||
bench.apps.sync()
|
|
||||||
|
|
||||||
conf = bench.conf
|
conf = bench.conf
|
||||||
if conf.get("developer_mode"):
|
if conf.get("developer_mode"):
|
||||||
@ -363,6 +362,8 @@ def install_app(
|
|||||||
|
|
||||||
install_python_dev_dependencies(apps=app)
|
install_python_dev_dependencies(apps=app)
|
||||||
|
|
||||||
|
bench.apps.sync()
|
||||||
|
|
||||||
if not skip_assets:
|
if not skip_assets:
|
||||||
build_assets(bench_path=bench_path, app=app)
|
build_assets(bench_path=bench_path, app=app)
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ from bench.exceptions import InvalidRemoteException, ValidationError
|
|||||||
|
|
||||||
logger = logging.getLogger(PROJECT_NAME)
|
logger = logging.getLogger(PROJECT_NAME)
|
||||||
bench_cache_file = ".bench.cmd"
|
bench_cache_file = ".bench.cmd"
|
||||||
paths_in_app = ("hooks.py", "modules.txt", "patches.txt", "public")
|
paths_in_app = ("hooks.py", "modules.txt", "patches.txt")
|
||||||
paths_in_bench = ("apps", "sites", "config", "logs", "config/pids")
|
paths_in_bench = ("apps", "sites", "config", "logs", "config/pids")
|
||||||
sudoers_file = "/etc/sudoers.d/frappe"
|
sudoers_file = "/etc/sudoers.d/frappe"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user