++ed by:

1 PAUSE user

🏃 🇦🇩🇦🇲 ⇝ 💥
and 1 contributors


App-skryf - perl blogger


Another blog engine utilizing Mojolicious, Markdown, Starman, Rex, and Ubic for a more streamlined deployable approach.


I like http://perlbrew.pl, but, whatever you're comfortable with. I won't judge.


    $ git clone git://github.com/battlemidget/App-skryf.git
    $ cpanm --installdeps .


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',
    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',
    about_template => 'about',
    css_template   => 'style',

So ~/blog/templates/{post.html.ep,index.html.ep,about.html.ep} and ~/blog/public/style.css


    $ 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.
    $ rex deploy

RUN (Development)

    $ morbo `which skryf`

RUN (Production)

I use Ubic to manage the process

     use Ubic::Service::SimpleDaemon;
     my $service = Ubic::Service::SimpleDaemon->new(
      bin => "starman -p 9001 `which skryf` -R",
      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>


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.