Webby bombs out when run with most command line options
Reported by ravinggenius | May 8th, 2009 @ 11:20 PM
First of all, this is my first time working with Webby. I have just installed the 0.9.4 gem in the usual manner. I started out (as I tend to do) by exploring the options available to me. These are the commands I ran and the results they gave:
webby -v => Webby 0.9.4
webby --help => normal-looking help
webby -o => Sitefile not found (RuntimeError)
webby -D => Sitefile not found (RuntimeError)
webby -P => Sitefile not found (RuntimeError)
webby -T => Sitefile not found (RuntimeError)
webby . => Sitefile not found (RuntimeError)
webby --options => Sitefile not found (RuntimeError)
At this point I was almost ready to give up, but I did some
searching and found the source code that was generating this error.
From that I finally figured out that I need a file in (I'm guessing
here) the target directory. Running touch Sitefile
seems fixed the issue. At lease it allowed me to run the above
commands without throwing an error.
So my question is, so long as we are generating files, why not just create an empty Sitefile if one doesn't exist? If not webby should at least print a helpful error message to inform the user. For instance this friendly message could easily do the trick:
Hey! We need a file called
Sitefile
to exist before doing anything else. Mind you, this file doesn't actually need to have anything in it, but Webby isn't going to do anything useful until this file is created. Try runningtouch Sitefile
to fix this problem.
Comments and changes to this ticket
-
ravinggenius May 8th, 2009 @ 11:42 PM
I would like to apologise for some of the remarks I made in the previous post. I just noticed that the proper way to start was with
webby-gen
. And I noticed that the Sitefile was created for me, along with the rest of the files. I'm sorry for not noticing the generate command earlier.Still, I do think a friendly message would be helpful if the wrong command is used, as was my case. Why are there two command anyway?
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Static website generate (ASCII Alchemy)