首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

heroku运用

2012-07-04 
heroku使用?已经安装了git?安装$ gem install heroku?登录$ heroku keys:add?创建项目$ heroku create --s

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

热点排行