Skip to content
This repository

我博客的源代码,这个代码较老,不推荐拿来学习

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .bundle
Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 test
Octocat-spinner-32 vendor
Octocat-spinner-32 .gems
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.textile
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
README.textile

Simple person website for you, I can deploy on Heroku cloud server, base on Rails 3.0 + Ruby (1.8.7 or 1.9.2).

Demo

Features

  • Weblog,Single page system.
  • auto get Twitter message on Homepage.
  • auto show recent Google Reader share entry on Share page.
  • Textile with Signle page body format.
  • Heroku support.
  • Rails 3.0 powered, support beteen Ruby 1.8.7 and 1.9.2

Install on Heroku

$ git clone git://github.com/huacnlee/personlab.git
$ cd personlab
$ vi config/application.rb
$ heroku create —stack bamboo-ree-1.8.7 youappname
$ heroku config:add HEROKU=true
$ git push heroku master
$ heroku rake db:create
$ heroku rake db:migrate
$ heroku rake db:seed

Install on Ubuntu

$ git clone git://github.com/huacnlee/personlab.git
$ cd personlab
$ cp config/database.yml.default config/database.yml
$ vi config/database.yml
$ cp config/twitter.yml.default config/twitter.yml
$ vi config/twitter.yml
$ vi config/application.rb
$ bundle install
$ RAILS_ENV=production rake db:create
$ RAILS_ENV=production rake db:migrate
$ RAILS_ENV=production rake db:seed

Update new version

$ git pull origin master
$ git push heroku master
$ heroku db:migrate
$ heroku restart

Config with your self

You can change some config in application.rb bottom, etc. Feed url, Google Analytics Id …

Custom Theme

If you want custom theme, you shoud create theme files like themes/friendfeed-bret, view more theme documents in themes_for_rails .
Then theme created, you need change THEME_NAME value as you theme directory name in config/application.rb file.

Admin password

When you run you run “rake db:seed” it can create a default user login: admin password: 123123

Something went wrong with that request. Please try again.