Project

General

Profile

« Previous | Next » 

Revision c4aac86a

Added by Dominic Cleal about 8 years ago

bootdisk: precompile assets to fix missing JS

View differences:

plugins/ruby-foreman-bootdisk/debian/changelog
ruby-foreman-bootdisk (8.0.0-2) stable; urgency=low
* Precompile assets to fix missing JS
-- Dominic Cleal <dominic@cleal.org> Mon, 18 Apr 2016 15:23:21 +0100
ruby-foreman-bootdisk (8.0.0-1) stable; urgency=low
* 8.0.0 released
plugins/ruby-foreman-bootdisk/debian/control
Section: ruby
Priority: extra
Maintainer: Greg Sutcliffe <gsutclif@redhat.com>
Build-Depends: debhelper (>= 8.0.0), foreman (>= 1.12.0~rc1), foreman-sqlite3 (>= 1.12.0~rc1)
Build-Depends: debhelper (>= 8.0.0), foreman-assets (>= 1.12.0~rc1), foreman-sqlite3 (>= 1.12.0~rc1)
Standards-Version: 3.9.3
Homepage: https://github.com/theforeman/foreman_bootdisk
plugins/ruby-foreman-bootdisk/debian/install
foreman_bootdisk.rb usr/share/foreman/bundler.d
cache usr/share/foreman/vendor
apipie-cache/foreman_bootdisk var/lib/foreman/public/apipie-cache/plugin
foreman_bootdisk var/lib/foreman/public/assets
plugins/ruby-foreman-bootdisk/debian/rules
cp $(PLUGIN).rb /usr/share/foreman/bundler.d/
cd /usr/share/foreman && ( \
bundle install --local && \
bundle exec rake plugin:assets:precompile[$(PLUGIN)] RAILS_ENV=production && \
bundle exec rake db:migrate RAILS_ENV=development && \
bundle exec rake plugin:apipie:cache[$(PLUGIN)] cache_part=resources \
OUT=/var/lib/foreman/public/apipie-cache/plugin/$(PLUGIN) RAILS_ENV=development \
)
GEM_PATH=$$(cd /usr/share/foreman && bundle show $(PLUGIN)) && \
cp -rp $${GEM_PATH}/public/assets/$(PLUGIN) ./
[ -e apipie-cache ] || mkdir apipie-cache/
cp -rp /var/lib/foreman/public/apipie-cache/plugin/$(PLUGIN) ./apipie-cache/

Also available in: Unified diff