Skip to content

cloudbsd/robbin_site

This branch is 14 commits behind robbin/robbin_site:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b12cd4c · Dec 16, 2013
Nov 12, 2013
Nov 12, 2013
Feb 20, 2013
Feb 24, 2013
Jan 13, 2013
Feb 21, 2013
Nov 12, 2013
Feb 1, 2013
Jan 12, 2013
Feb 6, 2013
Nov 12, 2013
Nov 15, 2013
May 8, 2013
May 7, 2013
Aug 21, 2013
Feb 28, 2013
May 8, 2013
May 8, 2013
Dec 16, 2013
May 8, 2013

Repository files navigation

Robbin's website

http://robbinfan.com

This is my personal website project.

System requirements

  • 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.

Install

  1. run bundle install
  2. copy config/app_config.example.yml to config/app_config.yml and copy config/database.example.yml to config/database.yml
  3. modify database config for your need.
  4. create database match your database.yml and start your database.
  5. run bundle exec rake secret to generate session secret key and fill it in app_config.
  6. run bundle exec rake ar:migrate to setup database schema.
  7. run bundle exec rake db:seed to generate admin user.
  8. start memcached with memcached -d.
  9. run bundle exec thin start for development environment and run ./zbatery.sh start for production environment.

Run on Windows

remove such lines in Gemfile and run with thin.

gem 'kgio'
gem 'zbatery'

MIT License

About

robbin's website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published