884 B
884 B
Initial Setup:
- Add the portal flake input to Webserver-Infra/flake.nix with a Forgejo access token.
- Does this need to be in just the inputs, or the outputs as well? I'm still very much learning nix and these things get confusing.
- Add services.portal.enable = true; to Webserver-Infra/configuration.nix
- Remove the existing users.users.portal and groups because they exist in this flake now
- Clone the repo on the server, place the .env, build, then run nixos-rebuild switch. This is mainly to start the service, I presume. The build is just so that the service has something to start.
To update:
- git pull
- Apply shell-instance environment variables for placeholder values to then run
npm ci && npm run build && npm ci --omit=dev - Restart the systemctl service (portal.service) to pickup the changes because the service is in charge of the
node buildcommand.