preaction / Statocles

Static website CMS
http://preaction.me/statocles
Other
84 stars 33 forks source link

create new site fail Can't call method "log" on an undefined value #578

Closed sigsbee closed 4 years ago

sigsbee commented 4 years ago

Debian 10, install through cpan Statocles Statocles version 0.093 (Perl v5.28.1)

statocles create www.example.com

Welcome to Statocles!

First, select a flavor. The flavor determines which applications will be
configured by default.

1) Blog

This flavor puts a blog as the main page, though you may add other pages
later.

2) Project

This flavor puts a plain Markdown file as the main page and adds a blog
for release announcements.

0) None

No applications will be preconfigured. You can add applications later.
See Statocles::Help::Config for details.

Which flavor of site would you like? ([1], 2, 0) 

Statocles comes with a default theme based on the Skeleton CSS library.
If you want, I can copy this default theme into the current directory so
that you can fully customize it to your liking.

Instead, you can make some minor alterations in content and color using
"include_stores". See Statocles::Help::Theme for more information.

You can always copy or restore the default theme later using the
"statocles bundle" command.

Do you want to bundle the theme? ([Y]/n) 

Statocles can deploy your site in multiple ways.

1) Git

Statocles will commit your site to a Git repository and push to a remote

2) Copy files

Statocles will copy your site to another directory for your web server
to serve.

0) None

Don't set up a deploy yet. "statocles deploy" will just write the site
to the current directory. You can set up a deploy later. See
Statocles::Help::Deploy for details.

How would you like to deploy? ([1], 2, 0) 0
Can't call method "log" on an undefined value at /usr/local/share/perl/5.28.1/Statocles.pm line 171, <STDIN> line 3.
preaction commented 4 years ago

Yes, this is a problem with the site creation wizard. There's a patch here to fix it: https://github.com/preaction/Statocles/pull/570. I've abandoned the v1 branch and started a version that does not need a site creation wizard. I'm using this on my own sites, but I haven't written upgrade documentation yet (and so have not released it to CPAN). Version 2 is available here: https://github.com/preaction/Statocles/tree/v2