We are trying to move asset compilation step to deployment, after the
is exploded on deployment, but before the application starts. Our
is a Rails 3.2.10 app on JRuby 1.7.1, includes turbo-sprockets-rails3
packaged as war under Jetty.
I have a vendor bundle directory with all my gems in the war. I figured
could invoke the assets using java, passing the jruby-complete jar as an
argument. The process finds gem dependencies and rails will start, but
rake task fails because rake/file_utils.rb tries to invoke my args as a
shell argument. I think the issue is that it interpets the path to jruby
with the “file:/” prefix. And if one was to try to invoke a binary with
that prefix, it will simply fail.
Has anyone tried to compile assets while in a war structure using jruby
#invoked from a bash script during the deploy process but before Jetty
#APP_ROOT_DIR is the root of the war file
java -jar lib/jruby-complete-1.7.1.jar -S
starting asset compilation…
Booted rails in 3.153
Included bundled gems in 5.32
** Invoke assets:precompile (first_time)
** Execute assets:precompile
assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
Command failed with status (127):
Thanks for any info you can provide. We have no issue compiling assets
during our build.
NOTE: I don’t have rvm on the server (wish I did).