This is my personal website project.
- ruby 1.9, recommend 1.9 p327 version
- MySQL 5.x, you should set utf-8 default encoding with adding line
default-storage-engine = innodb
tomy.cnf
- memcached
- nginx as web server,
config/nginx.conf
is my nginx configuration snippet.
- run
bundle install
- copy
config/app_config.example.yml
toconfig/app_config.yml
and copyconfig/database.example.yml
toconfig/database.yml
- modify database config for your need.
- run
rake secret
to generate session secret key and fill it in app_config. - create database match your database.yml and start your database.
- run
rake ar:migrate
to setup database schema. - run
rake seed
to generate admin user. - start memcached with
memcached -d
. - run
thin start
for development environment and run./servicectl start
for production environment.