(第一章小结)

第一步:生成项目骨架

   $ 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

相关文章:

  • 2021-05-27
  • 2021-11-01
  • 2021-11-25
  • 2021-07-25
  • 2022-01-19
  • 2021-08-22
  • 2021-10-19
猜你喜欢
  • 2021-09-21
  • 2021-05-08
  • 2022-02-13
  • 2021-06-30
  • 2021-12-20
  • 2021-10-14
  • 2021-07-02
相关资源
相似解决方案