diff options
author | EuAndreh <eu@euandre.org> | 2020-08-27 08:48:54 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-08-27 08:48:54 -0300 |
commit | 93925187565229957933c064a46e4f9344e24797 (patch) | |
tree | a7fc974427eecd9360cb98959a1ebf2a875f988b /vps-configuration.env.nix | |
parent | Add waitress as an --extras package for pires-prod (diff) | |
download | server-93925187565229957933c064a46e4f9344e24797.tar.gz server-93925187565229957933c064a46e4f9344e24797.tar.xz |
Always init pires database before starting
Diffstat (limited to 'vps-configuration.env.nix')
-rw-r--r-- | vps-configuration.env.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vps-configuration.env.nix b/vps-configuration.env.nix index 290ecbe..af37396 100644 --- a/vps-configuration.env.nix +++ b/vps-configuration.env.nix @@ -59,6 +59,7 @@ let pushd ${envsubstConfiguration.piresProdDir} ${pkgs.git}/bin/git pull ${pkgsUnstable.poetry}/bin/poetry install --no-dev --extras "waitress" + ${pkgsUnstable.poetry}/bin/poetry run flask inicializar-banco ${pkgsUnstable.poetry}/bin/poetry run waitress-serve --host localhost --port ${envsubstConfiguration.piresProdPort} --call pires:create_app ''; in { |