Re: Publishing with Publican -- important revision

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

 



On 05/25/2010 06:22 AM, Piotr Drąg wrote:
> W dniu 24.05.2010 22:07, Nathan Thomas pisze:
>    
>> This looks amazing, but I'm having a small problem... when I try to
>> remove a book so I can replace it with an updated copy, specifying the
>> path the the homepage.cfg file on my local copy of docs.fp.org, I get
>> the following error:
>>
>> DEBUG: Publican: config loaded
>> DB file '/home/rlandmann/Documents/books/Fedora/web/fedoradocs.db' not
>> found. at /usr/bin/publican line 775
>>
>> My local copy of docs.fp.org is up-to-date, with the required
>> homepage.cfg and fedoradocs.db.
>>
>>      
> I've encountered this problem earlier today, and I worked around it by
> locally modifying homepage.cfg to point to actual fedoradocs.db and
> public_html. Although the need of absolute path seems to be a bug to me.
>
>    

Thanks Nathan -- that's a big Ooops on my part!

Piotr's workaround is indeed correct. Here's what I've done:

* removed my homepage.cfg from the web.git
* replaced it with a homepage.tmp with boilerplate paths in it
* revised the instructions on the wiki to tell people what they need to 
do to set up their own homepage.cfg
* added homepage.cfg to a .gitignore file for the repo

Anyone who's already been publishing note: your next git pull will 
probably blow away your homepage.cfg file -- please back it up 
somewhere. If you see a homepage.tmp file in your local repo, you can 
safely re-add your backed up copy of your old homepage.cfg file -- git 
should ignore it from now on.

As for it being a bug, I'm not sure -- the install_book and remove_book 
commands operate under the assumption that you're a lone individual 
maintaining a small site single-handed. We're operating way outside its 
design parameters -- we're very definitely in the class of users for who 
building RPMs to install to a webserver was designed. I'll certainly ask 
Jeff about it though -- if a relative path will do, we can probably just 
ship a homepage.cfg again.

Sorry for the SNAFU :)

Cheers
Rudi

-- 
docs mailing list
docs@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/docs



[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Red Hat 9]     [Yosemite News]     [KDE Users]

  Powered by Linux