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 = innodbtomy.cnf - memcached
- nginx as web server,
config/nginx.confis my nginx configuration snippet.
- run
bundle install - copy
config/app_config.example.ymltoconfig/app_config.ymland copyconfig/database.example.ymltoconfig/database.yml - modify database config for your need.
- run
rake secretto generate session secret key and fill it in app_config. - create database match your database.yml and start your database.
- run
rake ar:migrateto setup database schema. - run
rake seedto generate admin user. - start memcached with
memcached -d. - run
thin startfor development environment and run./servicectl startfor production environment.