From: Eric Schulte <schulte.eric@gmail.com>
To: John Hendy <jw.hendy@gmail.com>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: [ANN, OT] Emacs web-server, a new option for serving Org-mode files
Date: Sat, 11 Jan 2014 15:29:09 -0700 [thread overview]
Message-ID: <87mwj2ywy2.fsf@gmail.com> (raw)
In-Reply-To: <CA+M2ft8oTMJZQeyPH_Wva29C_iRZWwywYv=Bm6=3aqsC1o-m6A@mail.gmail.com> (John Hendy's message of "Sat, 11 Jan 2014 16:21:29 -0600")
>
> The "Hello world" example worked splendidly for me out of the box. I'm
> having a bit of difficulty with serving up a file via this example:
> http://eschulte.github.io/emacs-web-server/File-Server.html#File-Server
>
> Perhaps I don't understand how the function is supposed to work... It
> says that the docroot is the current working directory in the example,
> so I cd'd to a directory with an .html file in it, started `emacs -Q`
> from the command line, ran `M-x load-file RET ~/.emacs`, and then
> evaluated the code from the example in the *scratch* buffer. I'm
> getting the 404 error. Should I be modifying that code somehow?
>
Since the value of the default-directory variable may not be easy to
predict, you're probably better off changing
(docroot default-directory)
to
(docroot "/full/path/to/directory/of/org/files")
I only used default-directory in the example because I couldn't think of
a good static path which would probably exist on most people's systems.
>
>
> Thanks and great work -- this is really neat!
Thanks, and please do let me know if anything else doesn't work as
expected.
Best,
>
> John
>
>
>> Best,
>>
>> Footnotes:
>> [1] https://github.com/eschulte/emacs-web-server
>>
>> [2] http://eschulte.github.io/emacs-web-server/tutorials/#sec-1
>>
>> [3] http://eschulte.github.io/emacs-web-server/Org_002dmode-Export.html#Org_002dmode-Export
>>
>> [4] https://github.com/eschulte/emacs-web-server/blob/master/examples/013-org-export-service.el
>>
>> [5] https://github.com/eschulte/emacs-web-server/blob/master/examples/011-org-agenda.el
>>
>> [6] https://github.com/eschulte/org-ehtml
>>
>> [7] http://eschulte.github.io/emacs-web-server/benchmark/
>>
>> --
>> Eric Schulte
>> https://cs.unm.edu/~eschulte
>> PGP: 0x614CA05D
>>
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D
next prev parent reply other threads:[~2014-01-11 22:31 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-11 18:09 [ANN, OT] Emacs web-server, a new option for serving Org-mode files Eric Schulte
2014-01-11 19:12 ` Thomas S. Dye
2014-01-11 21:53 ` Eric Schulte
2014-01-12 1:12 ` Thomas S. Dye
2014-01-11 22:21 ` John Hendy
2014-01-11 22:27 ` David Belohrad
2014-01-11 22:33 ` Eric Schulte
2014-01-12 16:38 ` David Belohrad
2014-01-11 22:29 ` Eric Schulte [this message]
2014-01-11 23:22 ` John Hendy
2014-01-12 0:26 ` Eric Schulte
2014-01-12 1:10 ` John Hendy
2014-01-12 1:53 ` Eric Schulte
2014-01-12 14:40 ` John Hendy
2014-01-12 16:21 ` Eric Schulte
2014-01-16 0:51 ` Andrea Rossetti
2014-01-17 17:37 ` Eric Schulte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mwj2ywy2.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jw.hendy@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).