13 lines
884 B
Markdown
13 lines
884 B
Markdown
Initial Setup:
|
|
1. 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.
|
|
2. Add services.portal.enable = true; to Webserver-Infra/configuration.nix
|
|
3. Remove the existing users.users.portal and groups because they exist in this flake now
|
|
4. 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:
|
|
1. git pull
|
|
2. Apply shell-instance environment variables for placeholder values to then run `npm ci && npm run build && npm ci --omit=dev`
|
|
3. Restart the systemctl service (portal.service) to pickup the changes because the service is in charge of the `node build` command.
|