From 57c42193ec9059b0ffd9b36264bf9c73260a666a Mon Sep 17 00:00:00 2001 From: Stasiek Michalski Date: Jul 21 2020 18:50:50 +0000 Subject: Precompile assets on deployment --- diff --git a/salt/profile/tsp/init.sls b/salt/profile/tsp/init.sls index ab30b41..8f9a654 100644 --- a/salt/profile/tsp/init.sls +++ b/salt/profile/tsp/init.sls @@ -60,6 +60,13 @@ tsp_db_migration: - env: RAILS_ENV=production - runas: tsp +tsp_assets_precompile: + cmd.run: + - name: rake assets:precompile + - cwd: /srv/www/travel-support-program + - env: RAILS_ENV=production + - runas: tsp + /etc/systemd/system/tsp.service: file.managed: - source: salt://profile/tsp/files/tsp.service