rake not working

4 views
Skip to first unread message

lesfreeman

unread,
Mar 19, 2010, 3:32:25 PM3/19/10
to Webby
I'm using Webby 0.9.4 and running into an issue (maybe just a
misunderstanding on my part) with the command line interface.

Things like the 'webby' and 'webby autobuild' run just fine.

'webby blog:post some_post' creates a post, but yields an info line
and then doesn't give the shell prompt back(I have to ctrl-c)

'rake' in my webby dir yields 'no rake file found'.

I guess my question is, what am I missing, or where can I find up to
date documentation for the command line interface?

Thanks!
Les

aimee daniells

unread,
Mar 19, 2010, 4:10:10 PM3/19/10
to webby...@googlegroups.com
I don't think webby uses rake anymore. all the commands begin with webby. Sounds like you're doing exactly the right thing.

The reason for the hang is probably that it's trying to launch the new page in a text editor and failing. Try adding something like

export EDITOR="vi"

into your ~/.bashrc or ~/.bash_login file and see if it makes any difference. Set it to your editor of preference.

aimee


To unsubscribe from this group, send email to webby-forum+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

lesfreeman

unread,
Mar 19, 2010, 4:31:14 PM3/19/10
to Webby
That makes sense. I'll try it out, as soon as I figure out my new
issue: :)

I wanted my posts to go into a /posts/ directory instead of /blog/. So
in my Sitefile I added:
SITE.blog_dir = 'posts'

as per
http://groups.google.com/group/webby-forum/browse_thread/thread/1f0342e8bf4c5887/ae5b67d09a57cee3?lnk=gst&q=blog_dir#ae5b67d09a57cee3

However, now when I try to use 'webby blot:post' I get an error:

undefined local variable or method `posts' for Webby::Builder:Class

Ideas?

On Mar 19, 1:10 pm, aimee daniells <aimeedanie...@googlemail.com>
wrote:


> I don't think webby uses rake anymore. all the commands begin with webby.
> Sounds like you're doing exactly the right thing.
>
> The reason for the hang is probably that it's trying to launch the new page
> in a text editor and failing. Try adding something like
>
> export EDITOR="vi"
>
> into your ~/.bashrc or ~/.bash_login file and see if it makes any
> difference. Set it to your editor of preference.
>
> aimee
>

lesfreeman

unread,
Mar 19, 2010, 4:43:17 PM3/19/10
to Webby
Ok, you were right on about the editor launching. Thanks!

Also, found that if I prefix with posts/post_name it works fine:

webby blog:post posts/confronting_the_information_ocean.markdown


I would like to figure out how to not have to add the posts/ in front
though, if anyone has ideas.

Thanks
Les

On Mar 19, 1:31 pm, lesfreeman <lesliefreem...@gmail.com> wrote:
> That makes sense. I'll try it out, as soon as I figure out my new
> issue: :)
>
> I wanted my posts to go into a /posts/ directory instead of /blog/. So
> in my Sitefile I added:
> SITE.blog_dir = 'posts'
>

> as perhttp://groups.google.com/group/webby-forum/browse_thread/thread/1f034...

aimee daniells

unread,
Mar 19, 2010, 4:46:23 PM3/19/10
to webby...@googlegroups.com
Oh good! :)

I'm afraid i've never really used the blogging part of webby so i don't know much about it. What you've done with the prefix sounds sensible though. I generally use nested directories in that way. So long as webby can find the right path to build the output, i think you're onto a winner! :D

aimee


To unsubscribe from this group, send email to webby-forum+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

lesfreeman

unread,
Apr 1, 2010, 10:05:56 PM4/1/10
to Webby
Found out the answer to my unexplained:

undefined local variable or method `posts' for Webby::Builder:Class

I had a month template in which I had an unescaped erb:
<%= render :partial => 'partials/post_list', :locals => {:posts =>
posts} %>

instead of
<%%= render :partial => 'partials/post_list', :locals => {:posts =>
posts} %>

Still having to prefix my blog post names with posts/ though.

Les


On Mar 19, 1:46 pm, aimee daniells <aimeedanie...@googlemail.com>
wrote:


> Oh good! :)
>
> I'm afraid i've never really used the blogging part of webby so i don't know
> much about it. What you've done with the prefix sounds sensible though. I
> generally use nested directories in that way. So long as webby can find the
> right path to build the output, i think you're onto a winner! :D
>
> aimee
>

Reply all
Reply to author
Forward
0 new messages