草庐IT

NoDatabaseError

全部标签

ruby-on-rails - 新 Rails 安装:ActiveRecord::NoDatabaseError FATAL: role does not exist

Rails的新手,正在尝试启动本地开发环境并运行从git克隆的站点。当我启动postgres并在项目下的终端中键入“railss”以启动服务器时,我遇到了以下问题:=>BootingWEBrick=>Rails4.2.0applicationstartingindevelopmentonhttp://localhost:3000=>Run`railsserver-h`formorestartupoptions=>Ctrl-Ctoshutdownserver[2017-01-0820:43:24]INFOWEBrick1.3.1[2017-01-0820:43:24]INFOruby2.

ruby-on-rails - ActiveRecord::NoDatabaseError fatal error :数据库 "db/development.postgresql"不存在

我正在构建一个小型应用程序,它在本地运行。然后当我去Heroku上部署它时,我的终端中弹出了这个错误:remote:Anerroroccurredwhileinstallingsqlite3(1.3.11),andBundlercannotremote:continue.remote:Makesurethat`geminstallsqlite3-v'1.3.11'`succeedsbeforebundling.remote:!remote:!FailedtoinstallgemsviaBundler.remote:!remote:!Detectedsqlite3gemwhichisno