From: Jeff Horn <jrhorn424@gmail.com>
To: Sebastian Rose <sebastian_rose@gmx.de>
Cc: Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: Publishing htaccess files with a project
Date: Wed, 20 Oct 2010 00:53:22 -0400 [thread overview]
Message-ID: <AANLkTi=D-Mcod-4gnspZWsLZ4bksGzyxV8Y19F+7aRAo@mail.gmail.com> (raw)
In-Reply-To: <87pqvam6rv.fsf@gmx.de>
We had a bit of a discussion off list, but I still haven't been able
to get the behavior I am after. See below.
<snip>
When I make the change as you have suggested above, I get the original
file not found error.
From the *Messages* buffer:
------------------------------------------------------------------------------
Select command:
Publishing file /Users/jeffreyhorn/org/ftr/.htaccess using
`org-publish-attachment'
org-publish-attachment: Opening input file: No such file or directory,
/Users/jeffreyhorn/org/ftr/.htaccess
------------------------------------------------------------------------------
This is my project definition as it stands now:
------------------------------------------------------------------------------
("ftr-htaccess"
:base-directory "~/org/ftr/"
:publishing-directory "~/Sites/FTR/"
:recursive t
:base-extension "org"
:exclude ".org"
:include (".htaccess")
:publishing-function org-publish-attachment)
------------------------------------------------------------------------------
</snip>
With this configuration, Sebastian and I were expecting the
org-publish-attachment function to pick up the .htaccess file and push
it to the publishing-directory. Instead, publishing exits with very
little information (and no Backtrace is triggered). The information I
have available is quoted above.
I may be making an obvious mistake, and any further help would be
gratefully accepted.
Jeff
On Sat, Oct 16, 2010 at 12:39 PM, Sebastian Rose <sebastian_rose@gmx.de> wrote:
> Jeff Horn <jrhorn424@gmail.com> writes:
>> Hi orgsters,
>>
>> I'm wondering how I should publish .htaccess files? My current setup
>> is a source directory under ~/org/, which is kept at Dropbox, and a
>> publishing directory under ~/Sites/, which is not. Since data loss is
>> pyschologically crippling, I like to keep *all* my source files
>> (images, css, whatnot) in the source directory.
>>
>> I have a static project setup that pushes css, images, and a few other
>> filetypes to the publishing directory. How can I do the same with
>> .htaccess? I tried adding "htaccess" to :base-extenstions, but that
>> unfortunately did nothing.
>
> Hi Jeff,
>
>
>
> use the property :include :
>
> (setq org-publish-project-alist
> '(("org-htaccess"
> :base-directory "~/org/"
> :recursive t
> :base-extension "xxx" ;; non-exestent
> :include (".htaccess")
> :publishing-directory "~/public_html/"
> :publishing-function org-publish-attachment)
> ...
>
>
> and make "org-htaccess" part of your compound project.
>
>
>
> Sebastian
>
--
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University
(704) 271-4797
jhorn@gmu.edu
jrhorn424@gmail.com
http://www.failuretorefrain.com/jeff/
next prev parent reply other threads:[~2010-10-20 4:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-16 1:01 Publishing htaccess files with a project Jeff Horn
2010-10-16 16:39 ` Sebastian Rose
2010-10-20 4:53 ` Jeff Horn [this message]
2010-10-20 16:14 ` Sebastian Rose
2010-10-20 16:27 ` Jeff Horn
2010-10-20 17:28 ` Sebastian Rose
2010-10-20 20:21 ` Jeff Horn
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTi=D-Mcod-4gnspZWsLZ4bksGzyxV8Y19F+7aRAo@mail.gmail.com' \
--to=jrhorn424@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=sebastian_rose@gmx.de \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.