-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having issues getting a war file to run #487
Comments
Could you show us the commands you used to build the war file? It sounds like it is getting built but upon booting up it can't find the files inside the war. Perhaps the way those files get loaded no longer works in a jar/war form. |
Sure. Thank you for your quick response. Really need to get this working soon. I created The sample rails app works when I run
Let me know if there's anything else you require. The rails app is a simple test app with the default scaffold |
Same issue here, here's how I solved: .rbenv/versions/jruby-9.3.2.0/lib/ruby/gems/shared/gems/warbler-2.0.5/lib/warbler/web_server.rb Changed line 91 from this |
Thank you @daemonzone, this worked for me as well. Would be nice if you would open a pull request for that. 😉 |
I created a simple test Rails app with sqlite db and used warbler to create a compiled executable war file. I used
java -server -jar app.war -S puma -p 3000 -c config/puma.rb
to start the app. I also tried with-S rails s
but no luck. It says either "config.ru not found" or "no application configured, nothing to run" or some other errors and exit system. Googling did not yield much, a few articles from 2012-14, and a couple recent but wasn't helpful.Could you help guide on how to get create a compiled rails application? Let's start with:
runnable
orexecutable
war or jar file of the Rails app?rails db:setup
andrails db:migrate
to setup production databases using the compiled war app?Using Rails 6.0.3.4, latest JRuby 9.2.13 for simple test app but the target app will be rails 5.1.7.
Thank you in advance.
The text was updated successfully, but these errors were encountered: