さとうようぞうの技術メモ

技術的な内容はこっちに書こうかなぁ、と思ったので。

Rails

アメリカ用の application.rb

config.time_zone と config.i18n.default_locale を変えてやる。 time_zone に指定する値は rake time:zones:all するとリストが出てくるので、該当するものをセットすればいいらしい。 bundle exec rake time:zones:all * UTC -11:00 * American Samoa Int…

rvmsudo する時の Warning の消し方

前回の続き。 これでOK。 echo export rvmsudo_secure_path=1 >> ~/.zshrc

rvmsudo rails s -p 80 しようとしてエラー

rails を port 80 で起動しようと rvmsudo を使ったら以下のエラーが出た. rvmsudo rails server -p 80 Warning: can not check `/etc/sudoers` for `secure_path`, falling back to call via `/usr/bin/env`, this breaks rules from `/etc/sudoers`. expor…