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

StackOverflow https://stackoverflow.com/questions/8902587

  •  17-04-2021
  •  | 
  •  

문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top