Executing rake tasks on an exploded war on tomcat without jruby being installed

陌路散爱 提交于 2019-12-22 12:54:29

问题


My rails project is deployed to tomcat with the help of warbler, but I need to be able to run rake tasks on that server.


回答1:


Stay tuned. I hope to have this capability in Warbler 1.4. Jake Goulding, a community member, has been doing some great work on this.

Until then, a typical approach would be to ensure all your Rake and database scripts are present in the war file, then just unpack it somewhere, cd to WEB-INF inside the unpacked war, and run something like java -cp lib/jruby-core*.jar:lib/jruby-stdlib*.jar org.jruby.Main -S rake -T.



来源:https://stackoverflow.com/questions/6210222/executing-rake-tasks-on-an-exploded-war-on-tomcat-without-jruby-being-installed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!