From 4a3e30097a0467db8fa9599472b45db9920f4839 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Tue, 30 May 2023 20:06:34 +0200 Subject: [PATCH] more erpnext wip add Readme --- README.md | 15 +++++++++++++++ flake.nix | 1 + nginx-erpnext-conf.nix | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e587817 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +``` +docker run -d --name erpnext-redis-socketio -p 12311:6379 redis:latest +docker run -d --name erpnext-redis-queue -p 6379:6379 redis:latest +docker run -d --name erpnext-db -p 3306:3306 -e MARIADB_ROOT_PASSWORD=password -e MARIADB_DATABASE=erpnext -e MARIADB_USER=erpnext -e MARIADB_PASSWORD=erpnext mariadb:latest --collation-server=utf8mb4_unicode_ci + +nix build .#runErpNext +./result/bin/runErpNext + +# new terminal +nix shell nixpkgs#nginx +nginx -c /tmp/erpnext/nginx-erpnext.conf -g "daemon off;" +# http://localhost:8081 +# User: Administrator +# Password: admin +``` diff --git a/flake.nix b/flake.nix index fe4e640..c29901a 100644 --- a/flake.nix +++ b/flake.nix @@ -72,6 +72,7 @@ cd $tmp # Upstream initializes the DB with this command ${py.pkgs.bench}/bin/bench new-site localhost --mariadb-root-password password --admin-password admin + ${py.pkgs.bench}/bin/bench --site localhost install-app erpnext echo "Workdir: $tmp" ${pkgs.nodejs}/bin/node $tmp/apps/frappe/socketio.js & diff --git a/nginx-erpnext-conf.nix b/nginx-erpnext-conf.nix index b9a7484..3990883 100644 --- a/nginx-erpnext-conf.nix +++ b/nginx-erpnext-conf.nix @@ -54,7 +54,7 @@ http { } server { - listen 8080; + listen 8081; server_name ${frappe_site_name_header}; root /tmp/erpnext/sites;