Search code examples
ruby-on-railsruby-on-rails-3tomcatruby-on-rails-3.1ruby-on-rails-3.2

How can i start a rails application on a tcserver?


I have tried to run rails on mongrel, so i included gem 'mongrel' in the gemfile and started rails server mongrel, the server started fine. But i need to start rails on 'tcserver'. How can i do that?. rails server tcserver throws LoadError: no such file to load -- rack/handler/tcserver which is quite obvious. Please let me know how to start a rails application on a tcserver


Solution

  • Vfabric TC Server is an adaption of Apache Tomcat, and as such is a Java servlet container. It does not run Ruby-on-Rails as is.

    You would need to use JRuby, and a tool such as Warbler, which packages Rails apps into WARs compatible with Tomcat.

    This Is a good step-by-step for the process. (Replace Tomcat with TC server instance)