2019-04-01から1ヶ月間の記事一覧

rspecの導入

Gemfile group :development, :test do # Call 'byebug' anywhere in the code to stop execution and get a debugger console gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] # Adds support for Capybara system testing and selenium driver gem '…

Gemfileを編集したらdockerに反映させる

docker-compose build

Docker上の既存DBにアクセスできない問題

問題 railsのアプリケーションから既存のデータベースへ接続したいのに接続できない。(app,db共にdocker上にある) 解決 アプリケーションとDBのdockerのネットワークが違うため。 ネットワークを同じにしなければいけない。 docker-composeファイルでネッ…

rails sでアプリケーションを起動しようとすると、A server is already running.と出てきて起動できない問題

問題 $ rails s A server is already running. Check /app/tmp/pids/server.pid. => Booting Puma => Rails 5.1.6 application starting in development => Run `rails server -h` for more startup options Exiting 別にアプリケーションを起動させてるわけ…

bundleでmysqlをインストールできない問題

問題 $ bundle install The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add tho…

【勉強まとめ】Clean Architecture 達人に学ぶソフトウェアの構造と設計

Clean Architecture 達人に学ぶソフトウェアの構造と設計 3つのプログラミングパラダイム 構造化プログラミング 構造化プログラミングとは、「順次(上から順にプログラムを実行する)」「反復(for文)」「分岐(if文)」の3つの構造を使ってプログラム構…