Per*_*son 4 ruby-on-rails heroku
当我运行Heroku db:migrate时出现错误:
rake aborted!
no such file to load -- sqlite3
/disk1/home/slugs/313735_a606978_6916/mnt/Rakefile:4
(See full trace by running task with --trace)
(in /disk1/home/slugs/313735_a606978_6916/mnt)
Run Code Online (Sandbox Code Playgroud)
当我做
heroku rake db:push
Run Code Online (Sandbox Code Playgroud)
我成功.
我需要在Heroku服务器上安装一些东西吗?
Heroku不支持SQLite数据库.你需要在生产中使用PostgreSQL.
group :production, :staging do
gem "pg"
end
group :development, :test do
gem "sqlite3-ruby", "~> 1.3.0", :require => "sqlite3"
end
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3269 次 |
| 最近记录: |