From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: Re: Publishing htaccess files with a project Date: Wed, 20 Oct 2010 00:53:22 -0400 Message-ID: References: <87pqvam6rv.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=58536 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8QgO-0007Mi-5o for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 00:53:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8QgM-0001eg-Ea for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 00:53:48 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:46067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8QgM-0001eb-Am for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 00:53:46 -0400 Received: by iwn1 with SMTP id 1so3763388iwn.0 for ; Tue, 19 Oct 2010 21:53:45 -0700 (PDT) In-Reply-To: <87pqvam6rv.fsf@gmx.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastian Rose Cc: Org-mode ml 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. 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) ---------------------------------------------------------------------------= --- 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 wr= ote: > Jeff Horn 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 : > > =A0(setq org-publish-project-alist > =A0 =A0 '(("org-htaccess" > =A0 =A0 =A0 =A0 :base-directory "~/org/" > =A0 =A0 =A0 =A0 :recursive t > =A0 =A0 =A0 =A0 :base-extension "xxx" =A0 =A0;; non-exestent > =A0 =A0 =A0 =A0 :include (".htaccess") > =A0 =A0 =A0 =A0 :publishing-directory "~/public_html/" > =A0 =A0 =A0 =A0 :publishing-function org-publish-attachment) > =A0... > > > and make "org-htaccess" part of your compound project. > > > > =A0Sebastian > --=20 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/