-
Notifications
You must be signed in to change notification settings - Fork 7
Installation
- MySQL
- Perl 5.8.4 or newer
- Various modules from CPAN
Install and start the MySQL server somewhere.
The login credentials can be configured in environments/development.yml
. The default development setup is just to use the root
user and pdns
database.
Load the schema into your database with mysql -uroot pdns < docs/full-schema.sql
.
If you are upgrading an existing PowerDNS database, use the docs/schema.sql
file instead.
install cpanm and local::lib as root or with sudo:
curl -sL http://xrl.us/cpanm | perl - --sudo App::cpanminus
cpanm --sudo local::lib
Then with your regular account setup local::lib:
perl -Mlocal::lib >> ~/.bash_profile
Logout and login again and then you can run the following to install the various dependencies; they will be installed into ~/perl5/ in your home directory.
echo '
Crypt::SaltedHash
Dancer
Dancer::Plugin::REST
Data::Dump
DateTime::Format::MySQL
DBD::mysql
DBIx::Class
DBIx::Class::Helper::Row::ToJSON
DBIx::Class::InflateColumn::Serializer
ExtUtils::MakeMaker
JSON
local::lib
Moose
MooseX::Singleton
namespace::clean
Plack
Plack::Middleware::Deflater
Template::Mustache
Test::More
YAML
' | cpanm
For development:
plackup -r -a bin/app.pl
For production:
starman -a bin/app.pl
See plackup -h
for more options, including daemonization.