如标题所示,我通过简单的rake routes
得到此错误。耙子中止! PG :: ConnectionBad:Cloud9尝试运行耙路线时出错
我想在C9中,命令运行的默认环境在生产中,因为这是我的Gemfile设置。
group :production do
gem 'pg'
end
group :development, :test do
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
end
在我的Linux分区运行完美,所以...我怎么能在开发测试环境中的运行rake routes
?
尝试'rake routes RAILS_ENV = development'? –
它也看起来像这可能是虚拟机没有互联网连接的结果。有时候这可以通过[重新启动工作区]来解决(https://docs.c9.io/docs/restarting-your-workspace)。 –