Revision 997b2427
Added by Tomer Brisker almost 6 years ago
plugins/ruby-foreman-remote-execution/debian/rules | ||
---|---|---|
cp $(PLUGIN).rb /usr/share/foreman/bundler.d/
|
||
cd /usr/share/foreman && ( \
|
||
/usr/bin/foreman-ruby /usr/bin/bundle install --local && \
|
||
/usr/bin/npm install --no-optional --unsafe-perm && \
|
||
/usr/bin/foreman-ruby /usr/bin/bundle exec rake plugin:assets:precompile[$(PLUGIN)] RAILS_ENV=production && \
|
||
/usr/bin/foreman-ruby /usr/bin/bundle exec rake db:migrate RAILS_ENV=development && \
|
||
/usr/bin/foreman-ruby /usr/bin/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 && /usr/bin/foreman-ruby /usr/bin/bundle show $(PLUGIN)) && \
|
||
cp -rp $${GEM_PATH}/public/assets/ ./
|
||
cp -rp $${GEM_PATH}/public/assets/ ./ && \
|
||
cp -rp $${GEM_PATH}/public/webpack ./
|
||
[ -e apipie-cache ] || mkdir apipie-cache/
|
||
cp -rp /var/lib/foreman/public/apipie-cache/plugin/$(PLUGIN) ./apipie-cache/
|
||
|
Also available in: Unified diff
Add webpack assets to remote execution