Ruby on Rails Tutorial 第二章 之 toy_app项目搭建

(第一章小结)

第一步:生成项目骨架

   $ rails _4.1.6_ new toy_app

第二步:修改Gemfile

第三步:安装gem

  $ bundle install --without production

第四步:将应用加入git版本控制系统

  $ git init

  $ git add -A

  $ git commit -m "Initialize repository"

第五步:把代码推送到远程仓库中

  #在GitHub网站创建新的repository

  $ git remote add origin git@github.com:LihuaSun/toy_app

  $ git push -u origin --all

第六步:修改代码,提交改动

  $ git commit -am "Add hello"

第七步:将项目推送到Heroku

  $ git push heroku master

posted @ 2015-06-28 16:28  sunflower627  阅读(162)  评论(0编辑  收藏  举报