aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorent Peyraud2018-01-05 08:54:59 +0100
committerFlorent Peyraud2018-01-05 08:54:59 +0100
commit10e6bcd7555dd0b59f3c1fe0a71a55d204660d64 (patch)
tree09d872710c4fcb7c6ff255e5e22c355ce98b6a7a
parente17e3e6c7f6af3398f18834a53c1ad56c1a41175 (diff)
downloadchouette-core-10e6bcd7555dd0b59f3c1fe0a71a55d204660d64.tar.bz2
embed packs dir into release package
-rw-r--r--lib/tasks/install.rake2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tasks/install.rake b/lib/tasks/install.rake
index 22a493a62..1150825b2 100644
--- a/lib/tasks/install.rake
+++ b/lib/tasks/install.rake
@@ -11,6 +11,7 @@ task :package do
sh "bundle exec rake assets:precompile RAILS_ENV=production"
sh "tar -rf tmp/package/stif-boiv-release-#{release_name}.tar vendor/cache"
sh "tar -rf tmp/package/stif-boiv-release-#{release_name}.tar public/assets"
+ sh "tar -rf tmp/package/stif-boiv-release-#{release_name}.tar public/packs"
%w{deploy-helper.sh README sidekiq-stif-boiv.service stif-boiv.conf stif-boiv-setup.sh template-stif-boiv.sql}.each do |f|
cp "install/#{f}", "tmp/package/#{f}"
@@ -38,6 +39,7 @@ task :pkg4docker do
sh "bundle exec rake assets:precompile RAILS_ENV=production"
sh "tar -rf tmp/package/stif-boiv-release-#{release_name}.tar vendor/cache"
sh "tar -rf tmp/package/stif-boiv-release-#{release_name}.tar public/assets"
+ sh "tar -rf tmp/package/stif-boiv-release-#{release_name}.tar public/packs"
sh "gzip -c tmp/package/stif-boiv-release-#{release_name}.tar > tmp/stif-boiv-release.tar.gz"