mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-21 15:25:09 +00:00
fix: Frappe/ERPNext worker image new site command
This commit is contained in:
parent
500b8925cb
commit
33b5071aaa
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ site_name = os.environ.get("SITE_NAME", 'site1.localhost')
|
||||||
mariadb_root_username = os.environ.get("DB_ROOT_USER", 'root')
|
mariadb_root_username = os.environ.get("DB_ROOT_USER", 'root')
|
||||||
mariadb_root_password = os.environ.get("DB_ROOT_PASSWORD", 'admin')
|
mariadb_root_password = os.environ.get("DB_ROOT_PASSWORD", 'admin')
|
||||||
force = True if os.environ.get("FORCE", None) else False
|
force = True if os.environ.get("FORCE", None) else False
|
||||||
|
install_apps = ['erpnext'] if os.environ.get("INSTALL_ERPNEXT", None) else False
|
||||||
frappe.init(site_name, new_site=True)
|
frappe.init(site_name, new_site=True)
|
||||||
|
|
||||||
_new_site(
|
_new_site(
|
||||||
|
|
@ -16,7 +16,7 @@ _new_site(
|
||||||
mariadb_root_password=mariadb_root_password,
|
mariadb_root_password=mariadb_root_password,
|
||||||
admin_password=os.environ.get("ADMIN_PASSWORD", 'admin'),
|
admin_password=os.environ.get("ADMIN_PASSWORD", 'admin'),
|
||||||
verbose=True,
|
verbose=True,
|
||||||
install_apps=[],
|
install_apps=install_apps,
|
||||||
source_sql=None,
|
source_sql=None,
|
||||||
force=force,
|
force=force,
|
||||||
reinstall=False,
|
reinstall=False,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue