首页 > 移动平台 > 详细

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

时间:2015-06-28 16:51:03      阅读:183      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!