`
wuhuizhong
  • 浏览: 668481 次
  • 性别: Icon_minigender_1
  • 来自: 中山
社区版块
存档分类
最新评论

Rails3部署到heroku

    博客分类:
  • ROR
 
阅读更多

gem install heroku
rails new myapp
cd myapp
由于heroku只支持PostgreSQL
所以要再Gemfile里加入
gem 'sqlite3'
gem 'pg'
然后执行
bundle install
发布项目到github
git init
git add.
git commit - a - m 'init my project'
heroku create -- stack cedar ///// heroku create如果已经存在stack

git push heroku master

可用命令:
heroku logs
heroku ps
heroku run console

rake命令
heroku run rake db:migrate
heroku run rake - T

启动服务
gem 'thin'

 

from:http://www.sevenmike.com/2011/06/29/deploy-rails3-project-on-heroku/

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics