diff options
| author | Robert | 2017-07-06 15:56:56 +0200 |
|---|---|---|
| committer | Robert | 2017-07-06 15:56:56 +0200 |
| commit | 29bd718088d4fbcdda7da3cc4d1afdfe527b76be (patch) | |
| tree | 28af2a85ca2859e46eb84ca883e38bbbb1cfc250 /lib/tasks/install.rake | |
| parent | 9d540268facd37a8326e392a644c2058e0f0d34b (diff) | |
| parent | 6509f34e8ebdac1c0d685a9f8acaa31d2c99c293 (diff) | |
| download | chouette-core-29bd718088d4fbcdda7da3cc4d1afdfe527b76be.tar.bz2 | |
Merge branch 'master' of github.com:af83/stif-boiv
Diffstat (limited to 'lib/tasks/install.rake')
| -rw-r--r-- | lib/tasks/install.rake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tasks/install.rake b/lib/tasks/install.rake index f32f3f240..5e41fa2af 100644 --- a/lib/tasks/install.rake +++ b/lib/tasks/install.rake @@ -7,12 +7,16 @@ task :package do sh "git archive --format=tar --output=tmp/package/stif-boiv-release-#{release_name}.tar HEAD" sh "bundle package --all" + sh "bundle exec rake assets:clobber RAILS_ENV=production" + sh "bundle exec rake assets:precompile RAILS_ENV=production" sh "tar -rf tmp/package/stif-boiv-release-#{release_name}.tar vendor/cache" %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}" end + cp "config/environments/production.rb", "tmp/package/production.rb" + sh "tar -czf stif-boiv-#{release_name}.tar.gz -C tmp/package ." sh "rm -rf tmp/package vendor/cache" end |
