From 6be270b1221f879ebcb271b23fed6aa122b0eda3 Mon Sep 17 00:00:00 2001 From: Leo McArdle Date: Fri, 25 Aug 2017 14:00:38 +0100 Subject: [PATCH] create discourse_test_multsite db in discourse_dev image --- image/discourse_dev/postgres_dev.template.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/image/discourse_dev/postgres_dev.template.yml b/image/discourse_dev/postgres_dev.template.yml index ef40a45..19333d3 100644 --- a/image/discourse_dev/postgres_dev.template.yml +++ b/image/discourse_dev/postgres_dev.template.yml @@ -34,6 +34,13 @@ run: - exec: su postgres -c 'psql discourse_test -c "alter schema public owner to discourse;"' - exec: su postgres -c 'psql discourse_test -c "create extension if not exists hstore;"' - exec: su postgres -c 'psql discourse_test -c "create extension if not exists pg_trgm;"' + + - exec: su postgres -c 'createdb discourse_test_multisite' || true + - exec: su postgres -c 'psql discourse_test_multisite -c "grant all privileges on database discourse_test_multisite to discourse;"' || true + - exec: su postgres -c 'psql discourse_test_multisite -c "alter schema public owner to discourse;"' + - exec: su postgres -c 'psql discourse_test_multisite -c "create extension if not exists hstore;"' + - exec: su postgres -c 'psql discourse_test_multisite -c "create extension if not exists pg_trgm;"' + - exec: cd tmp && git clone https://github.com/discourse/discourse.git --depth=1 && cd /tmp/discourse && sudo -u discourse bundle install - exec: chown -R discourse /tmp/discourse - exec: cd /tmp/discourse && sudo -u discourse bundle exec rake db:migrate -- 2.25.1