don't run ecto.create as we can safely assume the db already exists
(cherry picked from commit ec4b6abc4d
)
This commit is contained in:
parent
1859eb8b7a
commit
3ff6a85b0c
|
@ -153,7 +153,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