Fix typos, add env variables to final bench command

This commit is contained in:
PAlexanderFranklin 2024-03-13 11:36:41 -07:00
parent b1ae5183a7
commit 9d24abbee4

View File

@ -56,12 +56,12 @@ based on: https://raw.githubusercontent.com/frappe/bench/develop/easy-install.py
clone frappe-docker repo
sites = [erp.sprinklersnorthwest.com]
email = support@lathourhosting.org
email = support@lasthourhosting.org
admin_pass
db_pass
`cd frappe-docker`
`cp .env.example .env`
`cp example.env .env`
Write inside of env:
f"ERPNEXT_VERSION={erpnext_version}\n",
@ -80,10 +80,11 @@ f"SITES={quoted_sites}\n",
Make images/production/Containerfile available as a package on githaven? need to replace the erpnext repo argument inside it.
inside of compose.yaml, replace "image: frappe/erpnext" with the above package.
`. .env`
`sudo docker compose -p brotherton -f compose.yaml up -d`
The "erpnext" in this command is probably fine, I think the bench get-app gets the erpnext repository and puts it into an erpnext "app", regardless of what the erpnext repo env variable is.
`sudo docker compose -p brotherton exec backend bench new-site sitename --no-mariadb-socket --db-root-password db_pass --admin-password admin_pass --install-app erpnext --set-default`
The "erpnext" in this command is probably fine, I think the bench get-app inside the docker compose gets the erpnext repository and puts it into an erpnext "app", regardless of what the erpnext repo env variable is. This command only works if SITES contains a single site.
`sudo docker compose -p brotherton exec backend bench new-site "$SITES" --no-mariadb-socket --db-root-password "$DB_PASSWORD" --admin-password "$SITE_ADMIN_PASS" --install-app erpnext --set-default`
# Contributing