Skip to content

setup memo

uzura edited this page Jan 19, 2017 · 6 revisions
  • bundle install で失敗する

Resolving dependencies...... Bundler could not find compatible versions for gem "rails": In Gemfile: rails (~> 5.0.1)

quiet_assets was resolved to 1.0.0, which depends on
  rails (~> 3.1)
- 対応してないバージョンの gem は一旦削除。 `compass-rails` とか。
- `gem install json -v '1.8.3'`
- Failed to build gem native extension.
  - 普通に `gem install json` をすれば 2.0.2 がインストールされるが、1.x 系が必要
  - http://qiita.com/shinichinomura/items/41e03d7e4fa56841e654
- `xml_mini.rb:51: warning: constant ::Fixnum is deprecated`
- `xml_mini.rb:52: warning: constant ::Bignum is deprecated`
- ruby 2.4.0 と rails 5.0.1 で発生。次期バージョンの rails で修正予定。
- `Can't connect to local MySQL server through socket '/tmp/mysql.sock'`
- http://qiita.com/carotene512/items/e00076fe3990b9178cc0
- `Mysql2::Error: Access denied for user...`
- 以下で解決

mysql -u root

create user comorebi@localhost; grant all on . to 'comorebi'@'localhost';

- Heroku でアプリが起動しない
- 以下を実行

heroku login heroku addons:add cleardb:ignite -a comorebi heroku addons:destroy heroku-postgresql -a comorebi heroku config | grep CLEARDB_DATABASE_URL -a comorebi heroku config:set DATABASE_URL='<↑の結果をmysql2に変更したもの>' -a comorebi heroku run rake db:migrate -a comorebi

Clone this wiki locally