Open yeslow opened 7 years ago
1.xcode->homebrew->rvm->ruby(appstore command line tools 更新) 2.cd ~ ssh-keygen .ssh/id_rsa.pub 3.sudo vim /etc/hosts gitserver'ip xxx.git 4.bundle install 前安装系统依赖 比如 brew install mysql 安装必要的第三方库 brew install libxml2 libxslt libiconv brew install redis 启动 redis-server brew install mongodb 启动 mongod 5.database.yml 本地配置 6.mysql 本地配置 create database xxx 或者 rack db:create 7.bin/rake db:migrate RAILS_ENV=development 8.mysql -u root -p xxx < xxxxxx.sql select count(*) from table 9.config/setting/development.yml.example -> development.yml 10.rails s -b 127.0.0.1 11.bundle exec rails s
bundle exec rake routes | grep baidu