phi*_*hil 4 ruby-on-rails heroku bundler
也许我错过了一些明显的东西,但是,我正在开发一个应用程序,现在我们想在heroku上运行.我使用mysql开发.我没有或想要在我的机器上安装postgres.
我在我的Gemfile中有这个:
gem 'mysql2', '~>0.2.6', :group => :development
gem "pg", :group => :production
Run Code Online (Sandbox Code Playgroud)
然而,当我在我的本地机器上进行捆绑安装时 - 在开发中 - 我看到了:
Installing pg (0.11.0) with native extensions /Users/smyp/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/installer.rb:533:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/Users/smyp/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Run Code Online (Sandbox Code Playgroud)
这是我所期望的,因为我本地没有postgres ......但为什么要尝试安装呢?!这不是打败团体的目的吗?
Dog*_*ert 16
使用 bundle install --without production
| 归档时间: |
|
| 查看次数: |
1026 次 |
| 最近记录: |