mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 02:41:35 +01:00
837729c83c376e6a71e3e4f53a6877f438624adc
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:
sudo mkdir -p /var/www/archtika-websites
sudo chown $USER:$(id -gn) /var/www/archtika-websites
nix run .#dev-vm
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.
Languages
TypeScript
40.2%
Svelte
29.4%
PLpgSQL
16.8%
CSS
6.7%
Nix
5.6%
Other
1.3%