mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
bcc26322d3cbf978d8cc4938046f434e08b3fb64
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%