don't run ecto.create as we can safely assume the db already exists
This commit is contained in:
parent
fa813f6216
commit
ec4b6abc4d
|
@ -150,7 +150,7 @@
|
|||
${nodejs}/bin/npm run build
|
||||
'')
|
||||
(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;"
|
||||
${elixir}/bin/mix ecto.migrate
|
||||
'')
|
||||
|
|
Loading…
Reference in a new issue