From 60a8de57b23b0d4786f84651dab3f8adbd0415b4 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Wed, 16 Dec 2020 23:52:47 +0530 Subject: [PATCH] FIX: perform bundle install after modifying directory permissions (#504) --- image/discourse_dev/postgres_dev.template.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/image/discourse_dev/postgres_dev.template.yml b/image/discourse_dev/postgres_dev.template.yml index 1742fdb..74c82c4 100644 --- a/image/discourse_dev/postgres_dev.template.yml +++ b/image/discourse_dev/postgres_dev.template.yml @@ -41,8 +41,9 @@ run: - 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: cd tmp && git clone https://github.com/discourse/discourse.git --depth=1 - exec: chown -R discourse /tmp/discourse + - exec: cd /tmp/discourse && sudo -u discourse bundle install - exec: cd /tmp/discourse && sudo -u discourse bundle exec rake db:migrate - exec: cd /tmp/discourse && sudo -u discourse RAILS_ENV=test bundle exec rake db:migrate - exec: rm -fr /tmp/discourse -- 2.25.1