Hi I am noticing my view rendering is getting a bit bogged down as I
add more javascript libraries. For each .js file I have, I am seeing
this in the console:
Started GET "/assets/tinymce/jscripts/tiny_mce/tiny_mce.js?body=1" for
127.0.0.1 at 2012-02-22 17:44:52 -0500
Served asset /tinymce/jscripts/tiny_mce/tiny_mce.js - 304 Not Modified (0ms)
While rails is busy figuring out if any of these .js files have
changed, my view goes blank before the next page gets rendered, it's
noticeable and annoying.
I am testing in development and want to know if this is a side-effect
of the development environment, or is there something I can do to
speed things up?
You can see if it's a consequence of running your server in
development mode by testing your app out in production instead. Issue
the command "rails server -e production" and see what happens!
I need some more help, I've never tested in production mode.
However after creating my production db, and running the rails server
is production I get a few errors
1) WeBrick claims port 3000 is already in use when it's not, not a big deal
=> Booting WEBrick
=> Rails 3.2.1 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2012-02-25 10:08:21] INFO WEBrick 1.3.1
[2012-02-25 10:08:21] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
[2012-02-25 10:08:21] WARN TCPServer Error: Address already in use - bind(2)
[2012-02-25 10:08:21] INFO WEBrick::HTTPServer#start: pid=11666 port=2010
2) When I use port 2010 to view my website I get a directory listing?