From 84987fc19147a6dd21cac44e36eef4087a150890 Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Wed, 7 Aug 2024 14:55:52 +0200 Subject: [PATCH] Add basic instructions for local vm --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index b8fc4d9..a0a0ad1 100644 --- a/README.md +++ b/README.md @@ -1 +1,17 @@ # archtika + +## Virtual machine for local development + +The website directory used by the virtual machine needs to be created and the NodeJS process, which typically runs as the default system user, needs permission to write to this directory. + +This can be achieved using the following commands: + +```bash +sudo mkdir -p /var/www/archtika-websites +``` + +```bash +sudo chown $USER:$(id -gn) /var/www/archtika-websites +``` + +For production, a separate `node` user can be created to run the systemd service for the node process; this user would have only the essential permissions to maintain the principle of least privilege. \ No newline at end of file