fix: grants wynne-rebuild access to ASTRO_DB_REMOTE_URL
This commit is contained in:
parent
9231f61a8e
commit
bf558644d1
1 changed files with 4 additions and 1 deletions
|
|
@ -41,6 +41,9 @@ in
|
||||||
systemd.services.wynne-rebuild = {
|
systemd.services.wynne-rebuild = {
|
||||||
description = "Clone/pull and build wynne.rs";
|
description = "Clone/pull and build wynne.rs";
|
||||||
after = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
|
environment = {
|
||||||
|
ASTRO_DB_REMOTE_URL = "file:${dataDir}/data/guestbook.db";
|
||||||
|
};
|
||||||
wants = [ "network-online.target" ];
|
wants = [ "network-online.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
|
@ -57,7 +60,7 @@ in
|
||||||
fi
|
fi
|
||||||
cd ${dataDir}/repo
|
cd ${dataDir}/repo
|
||||||
${pkgs.git}/bin/git fetch origin
|
${pkgs.git}/bin/git fetch origin
|
||||||
${pkgs.git}/bin/git reset --hard origin/main
|
${pkgs.git}/bin/git reset --hard origin/master
|
||||||
${pkgs.pnpm}/bin/pnpm install --frozen-lockfile
|
${pkgs.pnpm}/bin/pnpm install --frozen-lockfile
|
||||||
${pkgs.pnpm}/bin/pnpm build
|
${pkgs.pnpm}/bin/pnpm build
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue