2018-10-30から1日間の記事一覧
参照 devcenter.heroku.com config/puma.rb workers Integer(ENV['WEB_CONCURRENCY'] || 2) threads_count = Integer(ENV['RAILS_MAX_THREADS'] || 5) threads threads_count, threads_count preload_app! rackup DefaultRackup port ENV['PORT'] || 3000 en…
RailsをHerokuにデプロイした際に、SSLを強制させる設定 config/environments/production.rb Rails.application.configure do . . . # Force all access to the app over SSL, use Strict-Transport-Security, # and use secure cookies. config.force_ssl =…
こちらの記事 Buckblog: Skinny Controller, Fat Model この記事を読んで得られる知識、技術 Railsにおいて、どこに何を書くのか? 特にコントローラに何を書くか、モデルに何を書くか、の基礎となる指針 どんな記事か? 18 October 2006 と古い記事だが、Ra…