I’m using Warble to deploy the barebones Rails 3 app to a Tomcat
container (it’s the app you get by default when creating a Rails 3 app
using the command line).
The homepage loads just fine, but when I click on the ‘About your
application’s environment’ link, I get the following error:
No such file to load –
/localhost/skills-rails/WEB-INF/config/environment.rb from
file:/Users/bhaidri/code/nextgen-ui/dist/tomcat-container/work/public/localhost/myapp/WEB-INF/lib/jruby-rack-1.0.3.jar!/jruby/rack/rails.rb:44:in
`load_environment’
Why is the path ‘/localhost/…’ instead of
‘/Users/bhaidri/code/nextgen-ui/dist/tomcat-container/work/public/localhost/myapp/WEB-INF/config/environment.rb’?
/localhost/skills-rails/WEB-INF/config/environment.rb from
file:/Users/bhaidri/code/nextgen-ui/dist/tomcat-container/work/public/localhost/myapp/WEB-INF/lib/jruby-rack-1.0.3.jar!/jruby/rack/rails.rb:44:in
`load_environment’
Why is the path ‘/localhost/…’ instead of
‘/Users/bhaidri/code/nextgen-ui/dist/tomcat-container/work/public/localhost/myapp/WEB-INF/config/environment.rb’?
Thanks in advance,
Baq
For reasons I haven’t had time to explore, the /rails/info/properties
page hasn’t worked inside a .war file. I haven’t seen your error
before, and could be indicative of something new. But the basic
request has unfortunately been broken for a while.
Thanks for the tip! I was able to verify that when the war is exploded,
I don’t get the error. I get a different error involving the
production.sqlite3 file being missing (which was never created by the
app creation script).
It would be nice to have that war problem fixed, but it’s not a blocker.
Is there a good reference out there on what to remove from the standard
app if you don’t have a backend database, but rather backend web
services?
/localhost/skills-rails/WEB-INF/config/environment.rb from
file:/Users/bhaidri/code/nextgen-ui/dist/tomcat-container/work/public/localhost/myapp/WEB-INF/lib/jruby-rack-1.0.3.jar!/jruby/rack/rails.rb:44:in
`load_environment’
Why is the path ‘/localhost/…’ instead of
‘/Users/bhaidri/code/nextgen-ui/dist/tomcat-container/work/public/localhost/myapp/WEB-INF/config/environment.rb’?
Thanks in advance,
Baq
For reasons I haven’t had time to explore, the /rails/info/properties
page hasn’t worked inside a .war file. I haven’t seen your error
before, and could be indicative of something new. But the basic
request has unfortunately been broken for a while.
Ok, I did that and that seemed to work when I ran it inside the WEBrick
server, but when I deployed the exploded war file into Tomcat it can’t
resolve the /rails/info/properties because it says that there’s no route
for it.
Is there something funky happening between development and production
configurations?
Nick S. wrote:
If you’re using Rails 3 but don’t need ActiveRecord, using
–skip-active-record works well. Mostly you just need to change Gemfile
and config/application.rb.
If you’re using Rails 3 but don’t need ActiveRecord, using
–skip-active-record works well. Mostly you just need to change Gemfile
and config/application.rb.