读书人

heroku运用

发布时间: 2012-07-04 19:33:54 作者: rapoo

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

读书人网 >开源软件

热点推荐