Rails bundle install与postgres gem有问题

时间:2017-09-03 15:50:04

标签: ruby-on-rails postgresql heroku

我在Rails gem中遇到过pg的问题。当我试着......

$ bundle install

..我的终端返回..

An error occurred while installing pg (0.21.0), and Bundler cannot
continue.
Make sure that `gem install pg -v '0.21.0'` succeeds before bundling.

我的gemfile包括:

group :production, :default do
  gem 'pg'
end

我正在做的练习是在Heroku中部署我的Rails应用程序,它可以工作。我的想法是我不在本地安装postgres。

这是我的Github回购,如果它有帮助:https://github.com/cyqurayte/Rails1

1 个答案:

答案 0 :(得分:0)

  

我的想法是我不在本地安装postgres。

我不认为在没有安装和更新postgres的情况下安装这个gem是不可能的

这对heroku有效的原因是那里的环境已经安装了postgres

相关问题