robbin's website
This is my personal website project.
ruby 1.9, recommend 1.9 p327 version
MySQL 5.x, you should set utf-8 default encoding utf-8 at my.cnf, like this:
[client] # on 5.0 or 5.1
default-character-set=utf8
[mysqld]
default-character-set=utf8
[mysqld] # on 5.5
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
character-set-server = utf8
memcached
nginx as web server, config/nginx.conf is my nginx configuration snippet.
bundle installconfig/app_config.example.yml to config/app_config.yml and copy config/database.example.yml to config/database.ymlbundle exec rake secret to generate session secret key and fill it in app_config.bundle exec rake ar:migrate to setup database schema.bundle exec rake db:seed to generate admin user.memcached -d.bundle exec thin start for development environment and run ./zbatery.sh start for production environment.remove such lines in Gemfile and run with thin.
gem 'kgio'
gem 'zbatery'No open issues yet, or sync has not completed.