Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Deploy to Heroku button #2

Merged
merged 2 commits into from
May 26, 2015

Conversation

sue445
Copy link
Contributor

@sue445 sue445 commented May 26, 2015

便利そうだったのでDeploy to Herokuボタンに対応してワンクリックでデプロイできるようにしました。

2015-05-26 12 38 44

自分のHerokuアカウントでデプロイできるところまで確認しています

app.jsonの説明文は適当なのでよしなに編集お願いします

公式資料

Because, FAILED bundle install sqlite3

       Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

       /tmp/build_5e840a1068ec34ab2bd2f40f2d6d2dca/sue445-BotHeaven-4dcf8f1/vendor/ruby-2.0.0/bin/ruby extconf.rb
       checking for sqlite3.h... no
       sqlite3.h is missing. Try 'port install sqlite3 +universal',
       'yum install sqlite-devel' or 'apt-get install libsqlite3-dev'
       and check your shared library search path (the
       location where your sqlite3 shared library is located).
       *** 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.

       Provided configuration options:
       --with-opt-dir
       --without-opt-dir
       --with-opt-include
       --without-opt-include=${opt-dir}/include
       --with-opt-lib
       --without-opt-lib=${opt-dir}/lib
       --with-make-prog
       --without-make-prog
       --srcdir=.
       --curdir
       --ruby=/tmp/build_5e840a1068ec34ab2bd2f40f2d6d2dca/sue445-BotHeaven-4dcf8f1/vendor/ruby-2.0.0/bin/ruby
       --with-sqlite3-dir
       --without-sqlite3-dir
       --with-sqlite3-include
       --without-sqlite3-include=${sqlite3-dir}/include
       --with-sqlite3-lib
       --without-sqlite3-lib=${sqlite3-dir}/

       Gem files will remain installed in /tmp/build_5e840a1068ec34ab2bd2f40f2d6d2dca/sue445-BotHeaven-4dcf8f1/vendor/bundle/ruby/2.0.0/gems/sqlite3-1.3.10 for inspection.
       Results logged to /tmp/build_5e840a1068ec34ab2bd2f40f2d6d2dca/sue445-BotHeaven-4dcf8f1/vendor/bundle/ruby/2.0.0/gems/sqlite3-1.3.10/ext/sqlite3/gem_make.out
       An error occurred while installing sqlite3 (1.3.10), and Bundler cannot
       continue.
       Make sure that `gem install sqlite3 -v '1.3.10'` 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
@@ -49,9 +49,10 @@ gem 'puma'
# Environment
gem 'dotenv-rails'

gem 'sqlite3', group: "sqlite3"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

production の中にあると c08c4ef のようなエラーが出るためproductionは外して、Herokuデプロイ時には bundle install --without sqlite3 でsqliteをインストールしないようにしています

@alfa-jpn
Copy link
Owner

Herokuボタンのプルリク及び、Herokuでの検証・対応ありがとうございます!
早速マージさせていただきます!

alfa-jpn added a commit that referenced this pull request May 26, 2015
@alfa-jpn alfa-jpn merged commit 0693239 into alfa-jpn:master May 26, 2015
@sue445 sue445 deleted the feature/deploy_to_heroku_button branch May 26, 2015 12:35
@sue445
Copy link
Contributor Author

sue445 commented May 26, 2015

😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants