css file in static directory not found

4 views
Skip to first unread message

Terrence Brannon

unread,
Oct 8, 2008, 6:49:45 AM10/8/08
to Nagare users
For my nagare application:
http://www.bitbucket.org/metaperl/gnumatrix/get/dab0fd0a4d12.gz

There is a file which attempts to use the CSS file in the
application's statuc directory:
http://www.bitbucket.org/metaperl/gnumatrix/src/tip/gnumatrix/static/html/index.html

But for some reason the css file is not found

apoirier

unread,
Oct 8, 2008, 7:01:32 AM10/8/08
to Nagare users
Because:
<link rel="stylesheet" type="text/css" href="/static/home.css" />
must be:
<link rel="stylesheet" type="text/css" href="/static/gnumatrix/
home.css" />

Each Nagare application, of name <app_name>, has a static contents
directory accessible with the URL `/static/<app_name>`

On Oct 8, 12:49 pm, Terrence Brannon <metap...@gmail.com> wrote:
> For my nagare application:http://www.bitbucket.org/metaperl/gnumatrix/get/dab0fd0a4d12.gz
>
> There is a file which attempts to use the CSS file in the
> application's statuc directory:http://www.bitbucket.org/metaperl/gnumatrix/src/tip/gnumatrix/static/...

Terrence Brannon

unread,
Oct 8, 2008, 9:50:45 AM10/8/08
to Nagare users


On Oct 8, 7:01 am, apoirier <alain.poiri...@gmail.com> wrote:
> Because:
>   <link rel="stylesheet" type="text/css" href="/static/home.css" />
> must be:
>   <link rel="stylesheet" type="text/css" href="/static/gnumatrix/
> home.css" />
>

I changed it to that as you can see:
http://www.bitbucket.org/metaperl/gnumatrix/src/tip/gnumatrix/static/html/index.html

And now there is a browser issue of some sort. I can
wget http://localhost:8080/static/gnumatrix/home.css
and it works just fine.

And I can get that same URL with my web browser if I type it in, but
when I put either:
/static/gnumatrix/home.css
or
http://localhost:8080/static/gnumatrix/home.css

in the <link> tag it does not serve! I have debugging on in this web
server... do I get a log of what actual requests were made?

Terrence Brannon

unread,
Oct 8, 2008, 12:44:39 PM10/8/08
to nagare...@googlegroups.com
I figured out what it was... home.css was serving just fine with your suggest modificaiton... but home.css has this line in it:

@import url("home-import.css");

And I did not have that file ... now I do... and everything rocks!
Reply all
Reply to author
Forward
0 new messages