I have a rails application deployed to tomcat, the code was compiled into java classes and packaged into a war file. And I wonder if I have a way to run rake tasks, as I always did?
I would also like a convenient way to do this, although I'm not sure if this is possible.
From a hacked (unpacked) WAR, you can find things like this somewhere:
java -cp WEB-INF/lib/jruby-core-1.6.4.jar -S rake
java -jar WEB-INF/lib/jruby-core-1.6.4.jar -S rake
It worked for me. Perhaps the same as the previous answer, but I donβt know enough about java, .war files or jruby to say with any confidence.
Source: https://habr.com/ru/post/1338163/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1338158/alternatives-to-cslanet&usg=ALkJrhjj8bEY9eZQiAez9wLqjOrL0EZpiAbash script: how can we use nested if in a for loop - scriptingHow can I save character objects in .Net XDocument? - escapingRunning rake tasks under Tomcat and JRuby - tomcatWhat causes the "jqGrid is not a function" error? - javascriptXcode Zombies Shows CFArray Increases Active Bytes - memory-leaksThe html table sets some cell text colors based on the value - htmlJQuery removes and adds click click event - javascripthg to see a set of changes before hg - mercurialWhat libraries are available for analyzing audio files for spoken keywords and / or speech in text? - javaAll Articles