介绍
angel_nest 天使之家是fredwu的一个作品,网站功能是建立中国首个企业家和创业者投资互动的一个平台,功能与 AngelList 相仿。他费了牛劲做好后最后客户不付钱(这不扯呢么!),poor fred....。anyway,感谢他的源码!也祝愿fredwu同学能勇往直前,再赚大钱!
环境
- rails3.2
- ruby1.9
地址
https://github.com/fredwu/angel_nest
安装步骤
- clone the repo, obviously
- if you use RVM, you may rename the
_rvmrc
file to.rvmrc
and adjust its content accordingly - copy or rename
config/database.example.yml
toconfig/database.yml
and adjust its content accordingly bundle install
rake db:create
rake dev:db:reset
rails s
- done, fire up your browser and browse to
http://localhost:3000/
:) - the default login is
test@example.com
and passwordpassword
注意点
有可能出现的错误是:
in /usr/share/ruby-rvm/gems/ruby- 1 . 9 . 2 -p320/gems/mysql2- 0 . 3 . 11 for inspection. |
66 | Results logged to /usr/share/ruby-rvm/gems/ruby- 1 . 9 . 2 -p320/gems/mysql2- 0 . 3 . 11 /ext/mysql2/gem_make.out |
67 | An error occured while installing mysql2 ( 0 . 3 . 11 ), and Bundler cannot continue. |
68 | Make sure that `gem install mysql2 -v '0.3.11' ` succeeds before bundling. |
解决方法:
sudo apt-get install libmysql-ruby libmysqlclient-dev
还有可能出现的错误是:
while scanning a simple key at line 5 column 3
解决方法:
更改数据库文件名,但里面数据库root账户不用填写你的密码。
先过过眼瘾: