I have a Rails 4.2.7.1 project that I'm attempting to deploy to Tomcat 7 with JRuby 9.1.5.0 and Warbler 2.0.4
When I deploy it to the root context it works fine. If I deploy it to some other context (/myApp, for example - tomcat does it so), images under PUBLIC are not found because the path is incorrect.
The assets are searched for "/", but are under "/myApp/".
Can I specify the warbler (/config/warble.rb for example)?
Or how else can I set the path correctly?
warbler WAR to deploy at tomcat, trouble with relative URL root
82 Views Asked by Ha_Sch At
1
There are 1 best solutions below
Related Questions in TOMCAT
- Unable to compile the class for JSP in tomcat 8.5.95
- detect catalina.out log path from a running tomcat on non-Windows
- Tomcat 9.0.80 with Open JDK (JRE only) v16.0.2 crashing/unresponsive several times a day with load: Thread Count hits Max and All Threads are Busy
- JAX-RS webapp deployed to Tomcat returns HTTP 404 error while it works fine in Eclipse
- Illegal access: this web application instance has been stopped already. Could not load [org.apache.logging.log4j.message.SimpleMessage]
- File Upload Handling: Inconsistent HTTP Response Codes for Different File Sizes with Exception in Tomcat
- Don't get any public folder when deployment in svelte kit app
- Accessing solr web interface behind reverse proxy returns "Content Encoding Error"
- java.lang.UnsatisfiedLinkError: org.apache.tomcat.jni.SSL.renegotiatePending(J)I
- Cannot decrypt the password in application.yml properly if war file in the tomcat/webapps
- how to deploy mock json data api's(json-server) and angular 17 application in apache tomcat server 9 version
- version compatibility issue between spring boot, struts2-core and tomcat-embed-jasper in web application
- Is there any possibility to use JTA with Spring Framework 6 and Tomcat or Payara?
- Eclipse issue with publishing to Tomcat server
- null in Camunda variables
Related Questions in JRUBY
- Error while doing bundle install with jruby
- jruby-jms-1.3.0-java gem create_destination method throws error "undefined method `java_kind_of?
- How to use csv converter encoding in ruby?
- Unable to run hbase shell in Mac
- Undefined method for nil:NilClass in JRuby
- Calling Java method doesn't work after upgrading jruby 9.2.11 to 9.3.0.0
- Form attribute :required => true missing from html output in production
- Intermittent connection refused error from Puma (Jruby version)
- OpenSSL error when installing JRuby with rbenv on MacOS
- JRuby can not call Java method
- Sanitizing encoding errors on input data in jruby
- JRuby ambiguous methods
- JRuby call Method from Java
- How to connect to SQLite3 database in JRuby?
- Extending (monkey patching) Java classes in Truffle Ruby
Related Questions in WARBLER
- Cannot run Warble (NoMethodError: undefined method `exists?' for File:Class)
- Analysing vocal similarity of little owls using warbleR in R
- jruby 9.3.4.0 NoMethodError: undefined method `new_ostruct_member' for No value for 'public' found
- A problem occurred starting process 'command 'jruby''
- Warbler with Bundler and Jruby seems to be broken
- wrong number of arguments (given 0, expected 1) after deployment JROR
- Failed to open TCP connection to repo2.maven.org:80 while making executable war with warbler
- Why does JRuby Swing app quits immediately if run as jar
- How do I force warbler to use a specific version of jruby?
- Compiled Jruby application Instance variable error
- Running jruby application with Elastic Search gem.
- Error in file (with, "r") from running querxc package warbleR
- Created jar from JRuby file using warbler. Application exit/goes in a blink when run
- Jruby: How to change the application url in war file deployed on glassfish server
- Using Java to change ruby views
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Deploying to sub-directories can be a pain.
First check if the asset_host is correct:
config.action_controller.asset_host = 'https://your.site/myApp'and
config.rulooks like: