`
genius_45
  • 浏览: 56846 次
  • 性别: Icon_minigender_1
  • 来自: 威海
社区版块
存档分类
最新评论

heroku使用

阅读更多

 

已经安装了git

 

安装

$ gem install heroku

 

登录

$ heroku keys:add

 

创建项目

$ heroku create --stack cedar

Creating freezing-fire-2420... done, stack is cedar

http://freezing-fire-2420.herokuapp.com/ | git@heroku.com:freezing-fire-2420.git

Git remote heroku added

 

--stack cedar参数用来使用最新最好的版本,即Celadon Cedar Stack

http://deep-wind-1312.herokuapp.com/ 即项目域名

 

部署

1> 使用git 将项目push到heroku

$ git push heroku master

 

2> 在浏览器打开你的项目

$ heroku open

 

heroku命令

$ heroku rename railstutorial

http://devcenter.heroku.com/articles/heroku-command

0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics