介绍
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
_rvmrcfile to.rvmrcand adjust its content accordingly - copy or rename
config/database.example.ymltoconfig/database.ymland adjust its content accordingly bundle installrake db:createrake dev:db:resetrails s- done, fire up your browser and browse to
http://localhost:3000/:) - the default login is
test@example.comand passwordpassword
注意点
有可能出现的错误是:
in /usr/share/ruby-rvm/gems/ruby-1.9.2-p320/gems/mysql2-0.3.11 forinspection. |
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账户不用填写你的密码。
先过过眼瘾:



本文详细介绍了如何在Rails3.2和Ruby1.9环境下安装天使之家源码,并提供了在安装过程中可能遇到的问题及其解决方案。包括错误处理和数据库配置细节。
1725

被折叠的 条评论
为什么被折叠?



