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

Rails笔记-rails-tutorial-hello_app

时间:2016-01-05 18:59:44      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:rails   笔记   

rails 4.2.2

1/rails _4.2.2_ new hello_app

2/修改gemfile

3/bundle install

4/rails server -b $IP -p $PORT(cloud9)

5/添加hello,action

6/修改路由(config/routes.rb)

root ‘application#hello‘

Git版本控制

1/git init(当前目录创建仓库)

2/git add -A(当前目录下的文件添加到仓库)

3/git commit -m "Initialize reposity"(提交添加,并添加说明)

Bitbucket代码托管

1/复制(本地cat命令),添加公钥(网站添加)

2/create reposity(网站添加)

3/添加Bitbucket,将本地的代码添加到bitbucket网站

git remote add origin git@bitbucket.org:jackzones/hello_app.git

4/推送,将代码推送到Bitbucket网站

git push -u origin --all

Rails笔记-rails-tutorial-hello_app

标签:rails   笔记   

原文地址:http://jackzones.blog.51cto.com/5001676/1731833

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