0

What are the steps I need to take to deploy my compiled jruby rails application(with warbler gem) to heroku Java servers?

I don't know Java so I hope you can help with the actions I need to take. For example, how I deal with the database connection? What configuration I need?

John Conde
  • 217,595
  • 99
  • 455
  • 496
Virgil
  • 1
  • 1

1 Answers1

1

for deploying your Rails application as a war archive you should follow the Java web-app runner guide ... although it does require some Java domain knowledge - mostly around Maven.

probably the easiest thing is deployment using the toolbelt plugin heroku deploy:war --war <path_to_war_file> since it assumes you have packaged the .war on your own locally ...

NOTE: be advised that if you'd follow the migrating to JRuby guide than you'll end up deploying without any .war packaging being involved in the process (similar to how you deploy with MRI)

kares
  • 7,076
  • 1
  • 28
  • 38
  • Thanks for your answer. I don't understand 2 things: 1)The connection file to Heroku DB should be included in the war? 2)Warbler doesn't generate any POM file, how do I get that? I tried deploying the war using toolbelt plugin but I get an error about jdk version not matching, even though I have installed(and running) 1.8 and toolbelt supports that – Virgil Apr 08 '15 at 07:14
  • Check that your `java -version` command reports Java 8, and check that your JAVA_HOME env var is set correctly. – codefinger Apr 09 '15 at 12:55