emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Publishing htaccess files with a project


From: Jeff Horn
Subject: Re: [Orgmode] Publishing htaccess files with a project
Date: Wed, 20 Oct 2010 00:53:22 -0400

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 <address@hidden> wrote:
> Jeff Horn <address@hidden> 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
address@hidden
address@hidden

http://www.failuretorefrain.com/jeff/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]