don't run ecto.create as we can safely assume the db already exists

This commit is contained in:
778a69cd 2024-03-07 12:30:24 +01:00
parent fa813f6216
commit ec4b6abc4d

View file

@ -150,7 +150,7 @@
${nodejs}/bin/npm run build ${nodejs}/bin/npm run build
'') '')
(pkgs.writeShellScriptBin "setup" '' (pkgs.writeShellScriptBin "setup" ''
${elixir}/bin/mix ecto.create # We assume the database already exists
sudo -u postgres ${postgresql}/bin/psql -d mobilizon -c "create extension if not exists postgis; create extension if not exists unaccent; create extension if not exists pg_trgm;" sudo -u postgres ${postgresql}/bin/psql -d mobilizon -c "create extension if not exists postgis; create extension if not exists unaccent; create extension if not exists pg_trgm;"
${elixir}/bin/mix ecto.migrate ${elixir}/bin/mix ecto.migrate
'') '')