Heroku是一个网络服务,你将Rails应用程序上传到Heroku,由Heroku自动将其部署在亚马逊的EC2上,并且自动伸缩扩展.
http://ihower.tw/blog/archives/4644
如何将rails应用部署到heroku?
https://devcenter.heroku.com/articles/rails3
我在部署的过程中遇到了很多的问题,通过google找到了解决方案。
jason@ubuntu:~/webapp/rails_project/depot$ git push heroku master
ssh: connect to host heroku.com port 22: Connection timed out
fatal: The remote end hung up unexpectedly
这个问题折腾了我很久,结果是防火墙的问题,参考一下链接。
Solution: http://ruby-china.org/topics/10813
我的railsapp应用了twitter bootstrap前端框架,在部署到heroku上的时候会出错
Use of the helper bootstrap_flash doesn't work when precompiling assets
Solution: http://stackoverflow.com/questions/16114539/bootstrap-and-rails-issue-with-heroku-deployment
heroku并不支持sqlite,所以必须替换为postgresql
http://stackoverflow.com/questions/11092807/installing-postgresql-on-ubuntu-for-ruby-on-rails
http://mrfrosti.com/2011/11/postgresql-for-ruby-on-rails-on-ubuntu/
如果你想把本地的数据库中的数据迁移到heroku,可以使用这个命令
heroku db:push
不过因为网络的问题,我一直没有成功的把数据迁移过去。