我用的是 mysql 数据库,部署到 heroku 上,过程如图:
我的 Gem:
我的 Database.yml:
本地是可以运行程序的,但是部署到 heroku 上大部分功能都不能用了
heroku_log:
If you do not specify a web server in your Procfile, it is likely that you’re running WEBrick in production. If you continue to run WEBrick it is likely that requests will take a long time, possibly timeout, and you will need to use many more dynos than your application requires.
Rather than doing this, ensure you use a production web server.
所以你是用 WEBrick 在跑吗?
建个 Procfile 文件,用 unicorn web: bundle exec unicorn_rails -p 80 -c ./config/unicorn.rb