From b8217218de689f64da854c32319d5f4e5bb8d4e1 Mon Sep 17 00:00:00 2001 From: JJ Grobler <149567957+JJ-Cronos@users.noreply.github.com> Date: Tue, 18 Jun 2024 10:02:12 +0200 Subject: [PATCH 1/3] Docs: Add rafnav site install --- docs/container-aliases.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/container-aliases.md b/docs/container-aliases.md index 3c01cbe7..7c6623e5 100644 --- a/docs/container-aliases.md +++ b/docs/container-aliases.md @@ -6,3 +6,4 @@ These alieases are contained the in the dockerfile under the "Add aliases" headi 2. ```frap-install```: shortcut for [frappe's bench script installer](development.md#setup-bench-/-new-site-using-script) 3. ```install-rafnav```: Installs RAFNAV and its dependencies for the current **in use** site. 4. ```start dev```: CD into the default bench directory and start the server. +5. ```install-site-rafnav```: Creates a new site (rafnav.localhost) and installs rafnav on it. From c3772dcbfc51a4419e8f04214fc3c85b6c071df9 Mon Sep 17 00:00:00 2001 From: JJ-Cronos Date: Tue, 18 Jun 2024 10:04:13 +0200 Subject: [PATCH 2/3] feat: Add rafnav site install --- images/rafnav_bench/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/images/rafnav_bench/Dockerfile b/images/rafnav_bench/Dockerfile index f60b0445..dde493cc 100644 --- a/images/rafnav_bench/Dockerfile +++ b/images/rafnav_bench/Dockerfile @@ -128,6 +128,7 @@ RUN touch ~/.bash_aliases \ && echo 'alias py="python"' >> ~/.bash_aliases \ && echo 'alias frap-install="py installer.py"'>> ~/.bash_aliases \ && echo 'alias install-rafnav="bench install-app erpnext documentation lending filing matter_management lrms raf_finance rafnav_core"' >> ~/.bash_aliases \ + && echo 'alias install-site-rafnav="bench new-site rafnav.localhost && bench use rafnav.localhost && install-rafnav"' >> ~/.bash_aliases \ && echo 'alias start-dev="cd /workspace/development/rafnav_bench && bench start"' >> ~/.bash_aliases From 248d5f9d8c54df536a97113b6df69270051e8e26 Mon Sep 17 00:00:00 2001 From: JJ Grobler <149567957+JJ-Cronos@users.noreply.github.com> Date: Fri, 5 Jul 2024 10:57:26 +0200 Subject: [PATCH 3/3] FIX: Add Linux Support --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f01ead0a..9e77b527 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ Now you can run ```run-rafnav``` anywhere in your WSL terminal to start the deve ### GitHub Login (SSH) -> Make sure you're setting it up for Linux +> Make sure you're setting it up for WSL or Linux 1. [Check for any existing SSH Key](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys) 2. [Generate an SSH Key](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) @@ -84,6 +84,11 @@ Now you can run ```run-rafnav``` anywhere in your WSL terminal to start the deve ### RAFNAV Installation +**‼️ If you're installing on Linux, run the following command first:** +```sh +chown frappe:frappe /workspace/development/ +``` + #### Default Install ```sh