aboutsummaryrefslogtreecommitdiff
path: root/vps-configuration.env.nix
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-27 08:48:54 -0300
committerEuAndreh <eu@euandre.org>2020-08-27 08:48:54 -0300
commit93925187565229957933c064a46e4f9344e24797 (patch)
treea7fc974427eecd9360cb98959a1ebf2a875f988b /vps-configuration.env.nix
parentAdd waitress as an --extras package for pires-prod (diff)
downloadserver-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.nix1
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 {