码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2015-06-28 16:51:26      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:

(第一章小结)

第一步:生成项目骨架

   $ 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

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

标签:

原文地址:http://www.cnblogs.com/sunflower627/p/4605726.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!