From 844feb7f0e3d3b661b026b76825545c1f27420c3 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Wed, 8 Aug 2018 14:14:18 +0200 Subject: [PATCH] Minor fix. Cruft removedc. --- ansible/debshots.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ansible/debshots.yml b/ansible/debshots.yml index dcb6faa..023e60b 100644 --- a/ansible/debshots.yml +++ b/ansible/debshots.yml @@ -88,17 +88,20 @@ become_flags: "-i" - name: Install dependencies - shell: bundle install + shell: bundle install --deployment args: chdir: /opt/debshots become: yes become_user: debshots become_flags: "-i" - - name: Make sure that the public/ directory is readable by nginx - file: path=/opt/debshots/public mode='go+rx' - - name: Make sure that the config.ru is readable by nginx - file: path=/opt/debshots/config.ru mode='go+r' + - name: Pre-render the static assets + shell: rails assets:precompile RAILS_ENV=production + args: + chdir: /opt/debshots + become: yes + become_user: debshots + become_flags: "-i" - name: Deploy nginx config copy: