App-skryf - i kno rite. another perl blogging engine.
Another blog engine utilizing Mojolicious, Markdown, Hypnotoad, Rex, and Ubic for a more streamlined deployable approach.
I like http://perlbrew.pl, but, whatever you're comfortable with. I won't judge.
$ cpanm git://github.com/battlemidget/App-skryf.git
By default skryf will look in dist_dir for templates and media. To override that make sure ~/.skryf.conf points to the locations of your templates, posts, and media. For example, this is a simple directory structure for managing your blog.
$ mkdir -p ~/blog/{posts,templates,public}
Edit ~/.skryf.conf to reflect those directories in media_directory, post_directory, and template_directory.
## Available vars: ## %bindir% (path to executable's dir) ## %homedir% (current $HOME) post_directory => '%homedir%/blog/posts', static_directory => '%homedir%/blog/static', template_directory => '%homedir%/blog/templates', media_directory => '%homedir%/blog/public',
You'll want to make sure that files exist that reflect the template configuration options.
post_template => 'post', index_template => 'index', static_template => 'static',
So ~/blog/templates/{post.html.ep,index.html.ep,about.html.ep} and ~/blog/public/style.css
$ skryf newpost a-new-blog-post
$ skryf newpage an-about-page
$ export BLOGUSER=username $ export BLOGSERVER=example.com If perlbrew is installed Rex will autoload that environment to use remotely. Otherwise more tinkering is required to handle the perl environment remotely. $ rexify --use=Rex::Lang::Perl::Perlbrew $ rex deploy
$ skryf daemon
I use Ubic to manage the process
use Ubic::Service::SimpleDaemon; my $service = Ubic::Service::SimpleDaemon->new( bin => "hypnotoad -f `which skryf`", cwd => "/home/username", stdout => "/tmp/blog.log", stderr => "/tmp/blog.err.log", ubic_log => "/tmp/blog.ubic.log", user => "username" );
Adam Stokes <adamjs@cpan.org>
Copyright 2013- Adam Stokes
Jon Portnoy [avenj at cobaltirc.org](http://www.cobaltirc.org) is original author of blagger in which this code is based heavily off of.
Licensed under the same terms as Perl.
To install App::skryf, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::skryf
CPAN shell
perl -MCPAN -e shell install App::skryf
For more information on module installation, please visit the detailed CPAN module installation guide.