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

S3を利用するときの環境変数セット方法(herokuの場合含む)

.bash_profileに追記する $ echo export aws_access_key_id=foo >> ~/.bash_profile $ echo export aws_secret_access_key=bar >> ~/.bash_profile .bash_profileを再読み込み $ source ~/.bash_profile サーバ再起動 herokuの場合 $ heroku login $ heroku …

rails newのときの決まりごとメモ

$ rails new -d mysql Gemfileを以下の通り修正 gem 'mysql2', '0.3.18' gem 'sass-rails', '~> 4.0.2' Gmfileに以下を追記 gem 'pry-rails' gem 'compass-rails','~> 2.0' gem 'sprockets', '2.11.0' $ bundle update $ bundle install $ rake db:create