remote: To see why this extension failed to compile, please check the mkmf.log which can
remote: be found here:
remote:
remote: /tmp/build_65348a656aac448eb5aea36afa80f6c0/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/cld3-3.1.3/mkmf.log
remote:
remote: extconf failed, exit code 1
remote:
remote: Gem files will remain installed in
remote: /tmp/build_65348a656aac448eb5aea36afa80f6c0/vendor/bundle/ruby/2.4.0/gems/cld3-3.1.3
remote: for inspection.
remote: Results logged to
remote: /tmp/build_65348a656aac448eb5aea36afa80f6c0/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/cld3-3.1.3/gem_make.out
remote:
remote: An error occurred while installing cld3 (3.1.3), and Bundler cannot continue.
remote: Make sure that `gem install cld3 -v '3.1.3'` succeeds before bundling.
remote:
remote: In Gemfile:
remote: cld3
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
と怒られる。調べてみるとbuildpacksを設置しなきゃいけない。それで
12345
$ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-apt # v1.3.3かそれ以前ではこの行は不要
$ heroku buildpacks:add heroku/nodejs -a <App名>
$ heroku buildpacks:add heroku/ruby -a <App名>
$ heroku addons:create heroku-postgresql -a <App名>
$ heroku addons:create heroku-redis -a <App名>
ちゃんと設置をしてから
1
$ git push heroku master
をしてみたら、無事に通る。次は
データベースのマイグレーション
12
$ heroku run rails db:migrate -a <App名>
$ heroku run rails db:seed -a <App名>
アプリケーションの設定
12345
$ heroku config:set HEROKU=true -a <App名>
$ heroku config:set LOCAL_DOMAIN=$APP_NAME.herokuapp.com -a <App名>
$ heroku config:set PAPERCLIP_SECRET=`heroku run rails secret -a <App名>` -a <App名>
$ heroku config:set SECRET_KEY_BASE=`heroku run rails secret -a <App名>` -a <App名>
$ heroku config:set OTP_SECRET=`heroku run rails secret -a <App名>` -a <App名>