Mastodon

Configuring Powerdns On Rails

I was following the link powerdns-on-rails and had trouble configuring.  An improved steps to install on a clean ubuntu x64 server is documented here.  Might be of help for someone.

Setps:

== install required packages ==

apt-get install git make build-essential g++ ruby1.9.1-full mysql mysql-server libmysqlclient-dev libxslt-dev libxml2-dev libreadline-ruby1.9 libruby1.9 libopenssl-ruby libpq-dev sqlite-devel libsqlite3-dev

== now we are ready for the powerdns-on-rails installation ==

git clone git://github.com/kennethkalmer/powerdns-on-rails.git
cd powerdns-on-rails/
cp config/database.yml.template config/database.yml

== update the database.yml to reflect mysql settings, specially the password ==

vi config/database.yml

== you need to make sure you have created the database powerdns_developement before contineuwing further ==

gem install bundler
bundle install
rake db:migrate
rake db:seed
rake generate_secret_token

You are all set to fire command ‘./script/rails s’ and if firewall is not blocking you on port 3000, you should be able to see the login page.

In the main page, the default username given is wrong.  Please use admin@example.com as the username.

Running rails on port 80

If you want to run rails on port 80, please pass ‘-p80’ as command line argument while starting the server.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.