This repository has been archived by the owner on Mar 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
README
63 lines (46 loc) · 1.79 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
h2. About
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).
h2. Demo
* http://personlab.heroku.com
* http://huacnlee.com
h2. 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":http://heroku.com support.
* Rails 3.0 powered, support beteen Ruby 1.8.7 and 1.9.2
h2. 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
h2. 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
h2. Update new version
$ git pull origin master
$ git push heroku master
$ heroku db:migrate
$ heroku restart
h2. Config with your self
You can change some config in application.rb bottom, etc. Feed url, Google Analytics Id ...
h2. Custom Theme
If you want custom theme, you shoud create theme files like themes/friendfeed-bret, view more theme documents in "themes_for_rails":http://github.com/lucasefe/themes_for_rails .
Then theme created, you need change THEME_NAME value as you theme directory name in config/application.rb file.
h2. Admin password
When you run you run "rake db:seed" it can create a default user login: admin password: 123123