在不安装jruby的情况下在tomcat的爆炸战争中执行rake任务 [英] Executing rake tasks on an exploded war on tomcat without jruby being installed

查看:93
本文介绍了在不安装jruby的情况下在tomcat的爆炸战争中执行rake任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在warbler的帮助下,我的rails项目已部署到tomcat,但是我需要能够在该服务器上运行rake任务.

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.

推荐答案

敬请关注.我希望在Warbler 1.4中具有此功能.社区成员Jake Goulding在这方面做得很好.

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.

在此之前,一种典型的方法是确保war文件中存在所有Rake和数据库脚本,然后将其解压缩到某个位置,在解压后的war中将其cd压缩到WEB-INF,然后运行类似java -cp lib/jruby-core*.jar:lib/jruby-stdlib*.jar org.jruby.Main -S rake -T的命令.

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.

这篇关于在不安装jruby的情况下在tomcat的爆炸战争中执行rake任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆