I have problems publish-file ing an index.html file that is linked to some css and javascript files in its ,
like;
<link rel="stylesheet" title="emy" type="text/css" href="emy/emy.css">
<link rel="stylesheet" title="emy" type="text/css" href="emy/themes/emy/main.css">
<script src="emy.js"></script>
etc.
and lisp procedure like;
(publish :path "/demos-emy" :file "~/Desktop/projs/proj1/demos/demos-emy/demos/index.html")
but see the result in browser at the address localhost:9090/demos-emy without any style or images or scripts i have once linked to. only markup.
looking by the browser's inspector i see a few messages like:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9090/emy/emy.css
Is Portable AllegroServe incapable of responding with an html file with its linked files?
Some files should be external to the html file to have a better working environment.
What is the problem here in my case?
I have problems publish-file ing an index.html file that is linked to some css and javascript files in its ,
like;(i am just omitting <> signs to escape html)
link rel="stylesheet" title="emy" type="text/css" href="emy/themes/emy/main.css"
script src="/emy/emy.js" script
etc.
and lisp procedure like;
(publish :path "/demos-emy" :file "~/Desktop/projs/proj1/demos/demos-emy/demos/index.html")
but see the result in browser at the address localhost:9090/demos-emy without any style or images or scripts i have once linked to. only markup.
looking by the browser's inspector i see a few messages like:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9090/emy/emy.css
Is Portable AllegroServe incapable of responding with an html file with its linked files?
Some files should be external to the html file to have a better working environment.
What is the problem here in my case?
Did you call publish for emy.css as well, or only for index.html?
i called it only for index.html.
but now surprisingly i have no problems with emy links but with another index.html files in other file paths with links to some other js and css files in some directories.
in emy case
i call publish-file in a dolist traversing a list of lists like (demo1 . "url/of/index.html").
and also apart from that i have made use of individual publish-file s, and also did not have the above problem this time with emy one.
in the 5th to 7th indices of the above mentioned list i have the problematic files i mentioned above. i don't understand what happens.
Can it be problem with browser remembering last load in which no emy.css or emy.js etc was found?
some times when i tinker with publish-file s and webaction-project maps a bit i go into this problem.
I think the best way to proceed is to create a proper bug report - something that begins with starting paserve and loading a given file with calls to (publish), then showing a sequence of steps in the browser that reproduce the problem.
thanks i will try it in some time. when i encounter it again i will report its reproduce cycle.
steps to reproduce the above mentioned problem:
this is for publish-file procedure but not for webactions-project mapping, this one works.
files are in the attachment.
Last edit: void 2013-11-28
and yet another thing:
after doing above, without relaunching lisp, doing same things in another package again, say cl-user package, makes request not completed, browser hang and waiting.
browser vaits and hangs
file for server in the attachment. html css files are same as previous posts attachments.
Last edit: void 2013-11-28
Is above demand on publish-file procedure beyond the defined capability of publish-file procedure?