1
私はRailsアプリケーションをHerokuにデプロイしようとしています。Heroku Cedar StackでFreeTDSを使用する
私はPostgresを使用していますが、私のdatabase.ymlでは、リモートSQLサーバにアクセスするためのdéfinitionも追加しました。私のGemfileに
:
モデルでgem 'tiny_tds', '0.5.1'
:
establish_connection :my_sqlserver
これは、開発モードで素晴らしい働いているが、私はHerokuのに展開しようとすると、エラーメッセージました:
を[...]
Installing tiny_tds (0.5.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for iconv_open() in iconv.h... yes
checking for sybfront.h... no
-----
freetds is missing.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
[...]
私はチュートリアルで問題なく動作していますが、少し複雑な解決策です: https://github.com/rails-sqlserver/tiny_tds/issues/74
それを動作させるためのアイデアはありますか?
ありがとうございました...
情報のためのThx。 –
Woot!おかげで房 –
あなたはherokuにfreetdsをどうやってインストールしましたか? – radiospiel