You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using rvm 1.29.12-next (master)
jruby version is clean and installed with rvm install 9.2.20.1
updated latest rubygems. workaround here rvm/rvm#5182
rails project is new created by rails new minimal --minimal version is 6.1.1
added warbler to Gemfile bundle add warbler version is 2.0.5
warbled a war budle exec warble
created war does not open in tomcat org.jruby.exceptions.StandardError: (GemNotFound) Could not find sassc-2.4.0 in any of the sources
lets examine created war
make temp folder mkdir war_temp; mv minimal.war war_temp; cd !$; unzip minimal.war
and now test with bundle check. Environment variables are copied from META-INF/init.rb
$ GEM_HOME=./WEB-INF/gems GEM_PATH= BUNDLE_GEMFILE=./WEB-INF/Gemfile BUNDLE_WITHOUT=development bundle check
Ignoring sassc-2.4.0 because its extensions are not built. Try: gem pristine sassc --version 2.4.0
The following gems are missing
* sassc (2.4.0)
what if used GEM_HOME= GEM_PATH=/home/jlahtinen/.rvm/gems/jruby-9.2.20.1 bundle check in rails project =>
The Gemfile's dependencies are satisfied
what is different between war's gems folder and .rvm's gems folder is that war's gems folder does not contain extensions folder. Let's copy that inside war's gems folder rsync -a /home/jlahtinen/.rvm/gems/jruby-9.2.20.1/extensions war_temp/WEB-INF/gems/. and check again.
cd war_temp; GEM_HOME=./WEB-INF/gems GEM_PATH= BUNDLE_GEMFILE=./WEB-INF/Gemfile BUNDLE_WITHOUT=development bundle check => The Gemfile's dependencies are satisfied
I am using rvm
1.29.12-next (master)
jruby version is clean and installed with
rvm install 9.2.20.1
updated latest rubygems. workaround here rvm/rvm#5182
rails project is new created by
rails new minimal --minimal
version is 6.1.1added warbler to Gemfile
bundle add warbler
version is 2.0.5warbled a war
budle exec warble
created war does not open in tomcat
org.jruby.exceptions.StandardError: (GemNotFound) Could not find sassc-2.4.0 in any of the sources
lets examine created war
make temp folder
mkdir war_temp; mv minimal.war war_temp; cd !$; unzip minimal.war
and now test with
bundle check
. Environment variables are copied fromMETA-INF/init.rb
what if used
GEM_HOME= GEM_PATH=/home/jlahtinen/.rvm/gems/jruby-9.2.20.1 bundle check
in rails project =>The Gemfile's dependencies are satisfied
what is different between war's gems folder and .rvm's gems folder is that war's gems folder does not contain extensions folder. Let's copy that inside war's gems folder
rsync -a /home/jlahtinen/.rvm/gems/jruby-9.2.20.1/extensions war_temp/WEB-INF/gems/.
and check again.cd war_temp; GEM_HOME=./WEB-INF/gems GEM_PATH= BUNDLE_GEMFILE=./WEB-INF/Gemfile BUNDLE_WITHOUT=development bundle check
=> The Gemfile's dependencies are satisfiedextenions folder contains
Should
The text was updated successfully, but these errors were encountered: