Getting 404 errors (but I shouldn't...)

35 views
Skip to first unread message

Luca Candela

unread,
Feb 26, 2013, 12:45:13 AM2/26/13
to serve...@googlegroups.com
Forgive the complete ruby noob, I started using Serve for prototyping and after running into all kinds of trouble setting up my second MacBook with Ruby (funny how it should be all the same...) and now I finally got the server running, but it seems like it doesn't like my directory structure (or permissions) anymore.

I get a bunch of 404 errors, see below:

[2013-02-25 21:40:22] INFO  WEBrick::HTTPServer#start: pid=64306 port=4000
127.0.0.1 - - [25/Feb/2013 21:40:35] "GET / HTTP/1.1" 200 - 0.0041
127.0.0.1 - - [25/Feb/2013 21:40:35] "GET /assets/stylesheets/demo.css HTTP/1.1" 404 47 0.0014
127.0.0.1 - - [25/Feb/2013 21:40:35] "GET /assets/javascripts/demo.js HTTP/1.1" 404 46 0.0010
127.0.0.1 - - [25/Feb/2013 21:40:35] "GET /assets/javascripts/jquery.js HTTP/1.1" 404 48 0.0014
127.0.0.1 - - [25/Feb/2013 21:40:35] "GET /assets/stylesheets/unsemantic-grid-responsive.css HTTP/1.1" 404 69 0.0012
127.0.0.1 - - [25/Feb/2013 21:40:35] "GET /favicon.ico HTTP/1.1" 404 31 0.0011
127.0.0.1 - - [25/Feb/2013 21:41:48] "GET / HTTP/1.1" 200 - 0.0044
127.0.0.1 - - [25/Feb/2013 21:41:48] "GET /assets/stylesheets/demo.css HTTP/1.1" 404 47 0.0013
127.0.0.1 - - [25/Feb/2013 21:41:48] "GET /assets/stylesheets/unsemantic-grid-responsive.css HTTP/1.1" 404 69 0.0018
127.0.0.1 - - [25/Feb/2013 21:41:48] "GET /assets/javascripts/jquery.js HTTP/1.1" 404 48 0.0010
127.0.0.1 - - [25/Feb/2013 21:41:48] "GET /assets/javascripts/demo.js HTTP/1.1" 404 46 0.0011
127.0.0.1 - - [25/Feb/2013 21:41:48] "GET /favicon.ico HTTP/1.1" 404 31 0.0012

the same exact index.html.erb and directory structure (used to) works on my other machine (that's for another post). What am I doing wrong?

Ale Muñoz

unread,
Feb 26, 2013, 2:12:24 AM2/26/13
to serve...@googlegroups.com
Are you manually linking your stylesheets, or are you using serve helpers (i.e: stylesheet_link_tag)?

That "/assets" part in your URL sounds *very* suspicious : )


a!

--
--
Serve Users Group
Mailing List: http://groups.google.com/group/serve-users/
Project: http://github.com/jlong/serve/
 
---
You received this message because you are subscribed to the Google Groups "Serve Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to serve-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

John Long

unread,
Feb 26, 2013, 10:13:09 AM2/26/13
to serve...@googlegroups.com
Agreed. Please `ls *` your project directory and paste the results for us.

--John
Reply all
Reply to author
Forward
0 new messages