Update readme to use installer
This commit is contained in:
parent
ceca0e3332
commit
0cef52c210
31
README.md
31
README.md
@ -53,29 +53,38 @@ Wait for 5 minutes for ERPNext site to be created or check `create-site` contain
|
||||
|
||||
based on: https://raw.githubusercontent.com/frappe/bench/develop/easy-install.py
|
||||
|
||||
clone frappe-docker repo
|
||||
`git clone ssh://git@githaven.org:2222/Shiloh/frappe_docker.git`
|
||||
|
||||
sites = [erp.sprinklersnorthwest.com]
|
||||
email = support@lasthourhosting.org
|
||||
admin_pass
|
||||
db_pass
|
||||
|
||||
`cd frappe-docker`
|
||||
`cd frappe_docker`
|
||||
`cp example.env .env`
|
||||
|
||||
Write inside of env:
|
||||
f"ERPNEXT_VERSION={erpnext_version}\n",
|
||||
|
||||
<!-- Commented items because the script doesn't read them. -->
|
||||
<!-- f"ERPNEXT_VERSION={erpnext_version}\n", -->
|
||||
|
||||
f"DB_PASSWORD={db_pass}\n",
|
||||
"DB_HOST=db\n",
|
||||
|
||||
<!-- "DB_HOST=db\n",
|
||||
"DB_PORT=3306\n",
|
||||
"REDIS_CACHE=redis-cache:6379\n",
|
||||
"REDIS_QUEUE=redis-queue:6379\n",
|
||||
"REDIS_SOCKETIO=redis-socketio:6379\n",
|
||||
f"LETSENCRYPT_EMAIL={email}\n",
|
||||
f"SITE_ADMIN_PASS={admin_pass}\n",
|
||||
f"SITES={quoted_sites}\n",
|
||||
f"LETSENCRYPT_EMAIL={email}\n", -->
|
||||
|
||||
`sudo docker compose --project-name brotherton -f compose.yaml -f overrides/compose.mariadb.yaml -f overrides/compose.redis.yaml -f overrides/compose.https.yaml --env-file .env config`
|
||||
f"SITE_ADMIN_PASS={admin_pass}\n",
|
||||
|
||||
<!-- f"SITES={quoted_sites}\n", -->
|
||||
|
||||
from inside the frappe-docker repo:
|
||||
|
||||
`sudo python3 easy-installer.py --prod --email support@lasthourhosting.org --site erp.sprinklersnorthwest.com`
|
||||
`sudo docker compose -p frappe exec backend bench use erp.sprinklersnorthwest.com`
|
||||
|
||||
<!-- `sudo docker compose --project-name brotherton -f compose.yaml -f overrides/compose.mariadb.yaml -f overrides/compose.redis.yaml -f overrides/compose.https.yaml --env-file .env config`
|
||||
|
||||
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.
|
||||
@ -84,7 +93,7 @@ inside of compose.yaml, replace "image: frappe/erpnext" with the above package.
|
||||
`sudo docker compose -p brotherton -f compose.yaml up -d`
|
||||
|
||||
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`
|
||||
`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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user