2010年3月29日月曜日

Plagger planet 設定に苦戦1

会社でいろいろやらんといけんので。
世の中から4年ほど遅れてるのね・・。

で、Planetとやらをやりたい。
PlaggerでPlanet SGIを作ってみた

あったんで参考にやるがうまくいかず。

YAMLつくって
plagger -c planet.yaml

でいくっぽいがエラー。
YAMLは上のサイトと、本家の
planet.yaml
を参考。

global:
plugin_path:
# - C:\strawberry\perl\site\lib\Plagger\Plugin
assets_path: C:\strawberry\perl\bin\assets\common
timezone: Asia/Tokyo
cache:
base: C:\strawberry\perl
log:
level: info

plugins:
# Subscribe to a couple of "My Feeds" on the web
# They could be either Feeds URL or Blog URL (with Auto-Discovery support)
- module: Subscription::Config
config:
feed:
- http://www.ncbi.nlm.nih.gov/feed/rss.cgi?ChanKey=PubMedNews

# Load 'Bundle' planet plugins
- module: Bundle::Planet
config:
title: ahoahoman
duration: 7 days
description: Everything Plagger from the Web
dir: C:\strawberry\perl\work\planet
url: http://examples.com/planet/
#theme: sixapart-std
#theme: planet
stylesheet: http://bulknews.typepad.com/blog/styles.css

でやると、
Plagger::Plugin [fatal] file error - default\template\index.tt: not found at line 144

でダメ。

そこらじゅうにdefault\template\index.tt つくったけどパスとおらず。

すったもんだしたあげく、
global:
log:
level: debug

にしてみたところ、

Plagger::Template [debug] Assets path: C:\strawberry\perl\bin\assets\common\plugins\Publish-Planet:C:\strawberry\perl\bin\assets\common\common

commonがふたつ連なってる!!。アホ。

で、
assets_path: C:\strawberry\perl\bin\assets

と修正。

やったー。終わりって思ったら
opml.tt がないってエラー。

ふう。まあもう原因わかったからいいや。
本家サイトからopml.tt とってきて保存しよ。

0 件のコメント:

コメントを投稿