LoginSignup
11
12

More than 5 years have passed since last update.

Herokuにデプロイできない非エンジニアです。

Last updated at Posted at 2014-05-25

下のRailsのチュートリアルを実践しながら勉強中です。

1.4.2 Herokuにデプロイする (1)

Railsアプリケーションを実際にHerokuにデプロイするには、まずGitを使用してHerokuにリポジトリをプッシュします。

$ git push heroku master

エラーが出ます。
下記、エラー内容です。

An error occurred while installing sqlite3 (1.3.8), and Bundler cannot continue.
       Make sure that `gem install sqlite3 -v '1.3.8'` succeeds before bundling.
 !
 !     Failed to install gems via Bundler.
 !     
 !     Detected sqlite3 gem which is not supported on Heroku.
 !     https://devcenter.heroku.com/articles/sqlite3
 !

 !     Push rejected, failed to compile Ruby app

色々調べて、変更してみても・・・

Gemfile
gem 'sqlite3'

のところを

Gemfile
group :development do
  gem 'sqlite3'
end

group :production do
  gem 'pg'
end

やっぱりエラーが出ます。

皆様の知恵をお貸しいただけますと幸いです。

11
12
11

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
12