aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/install.rake
diff options
context:
space:
mode:
authorLuc Donnet2018-02-19 11:37:33 +0100
committerGitHub2018-02-19 11:37:33 +0100
commit3809301116aec5466445b29637026804da3d6745 (patch)
tree903d6613b4cc253184770818a345ce3872fa45a4 /lib/tasks/install.rake
parent70fc9b5e5332aa7802e57e68f6b57f7f1604d255 (diff)
parent7b17deff51545358009cb417cbb9d796565e7540 (diff)
downloadchouette-core-3809301116aec5466445b29637026804da3d6745.tar.bz2
Merge pull request #316 from af83/0000-docker
0000-docker
Diffstat (limited to 'lib/tasks/install.rake')
-rw-r--r--lib/tasks/install.rake4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tasks/install.rake b/lib/tasks/install.rake
index 1150825b2..7d8ecdce0 100644
--- a/lib/tasks/install.rake
+++ b/lib/tasks/install.rake
@@ -9,9 +9,11 @@ task :package do
sh "bundle package --all"
sh "bundle exec rake assets:clobber RAILS_ENV=production"
sh "bundle exec rake assets:precompile RAILS_ENV=production"
+ sh "bundle exec rake i18n:js:export 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 "tar -rf tmp/package/stif-boiv-release-#{release_name}.tar public/javascripts"
%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}"
@@ -37,9 +39,11 @@ task :pkg4docker do
# sh "RAILS_DB_ADAPTER=nulldb bundle exec rake assets:precompile RAILS_ENV=production"
sh "bundle exec rake assets:clobber RAILS_ENV=production"
sh "bundle exec rake assets:precompile RAILS_ENV=production"
+ sh "bundle exec rake i18n:js:export 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 "tar -rf tmp/package/stif-boiv-release-#{release_name}.tar public/javascripts"
sh "gzip -c tmp/package/stif-boiv-release-#{release_name}.tar > tmp/stif-boiv-release.tar.gz"