Add manage.py migrate as ExecStartPre in Bookwyrm systemd unit
This commit is contained in:
parent
bf543612e5
commit
2c4e099347
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ with pkgs . kernelmaft ;
|
|||
[Service]
|
||||
|
||||
ExecStartPre=${coreutils-full}/bin/ln -sf ${bookwyrm}/var/lib/bookwyrm/VERSION /var/lib/bookwyrm/
|
||||
ExecStartPre=${bookwyrm}/bin/bookwyrm-env ${python311}/bin/python ${bookwyrm}/lib/python3.11/manage.py migrate
|
||||
ExecStart=${bookwyrm}/bin/bookwyrm-env ${bookwyrm}/bin/bookwyrm
|
||||
|
||||
WorkingDirectory=/var/lib/bookwyrm
|
||||
|
|
Loading…
Add table
Reference in a new issue