NAME
App-skryf - i kno rite. another perl blogging engine.
DESCRIPTION
Another blog engine which utilizes
- Mojolicious
- Markdown
- Hypnotoad
- Rex
- Ubic
- Mongo
For a more streamlined deployable approach.
PREREQS
I like http://perlbrew.pl, but, whatever you're comfortable with. I won't judge.
INSTALLATION (BLEEDING EDGE)
$ cpanm git://github.com/battlemidget/App-skryf.git
SETUP
$ skryf setup
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 and media. For example:
$ mkdir -p ~/blog/{templates,public}
Edit ~/.skryf.conf to reflect those directories in media_directory and media_directory.
template_directory => '~/blog/templates',
media_directory => '~/blog/public',
So ~/blog/templates/blog/detail.html.ep and ~/blog/public/style.css
DEPLOY
$ 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
RUN (Development)
$ skryf daemon
RUN (Production)
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"
);
AUTHOR
Adam Stokes <adamjs@cpan.org>
COPYRIGHT
Copyright 2013- Adam Stokes
LICENSE
Licensed under the same terms as Perl.