Projeto: Vermelho

logs of development
スポンサーサイト

一定期間更新がないため広告を表示しています

| - | | - | -
herokuにセキュア情報を登録する.
 heroku config:add AWS_S3_KEY_ID="xxxx" AWS_S3_SECRET_KEY="yyyy" AWS_S3_BUCKET="gggg"
| - | 20:58 | comments(0) | trackbacks(0)
carrierwaveからS3への接続が遅いとき
 http://takashi178.me/2011/05/carrierwave%EF%BC%8Bamazon-s3%E3%81%AE%E8%A8%AD%E5%AE%9A/

http://stackoverflow.com/questions/9548482/carrierwave-and-fog-s3-bucket-and-store-dir-configuration
| - | 15:00 | comments(0) | trackbacks(0)
heroku で carrierwaveを使う
 https://github.com/jnicklas/carrierwave/wiki/How-to%3A-Make-Carrierwave-work-on-Heroku
| - | 13:34 | comments(1) | trackbacks(0)
Herokuでvendor/pluginsに関するエラーが出たら…
こんなエラー
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /tmp/build_aq7o5mp0iokp/Rakefile:7)

下のほうに以下のシテキ
-----> Rails plugin injection
       Injecting rails_log_stdout
       Injecting rails3_serve_static_assets

解決策はここ.
http://help.papertrailapp.com/discussions/questions/116-logging-from-heroku-apps-using-unicorn

Solution

To output app logs, edit config/environments/production.rb or the environment configuration for your Heroku environment.

In the MyApp::Cofiguration.configure .. end block, add these 2 lines:

config.logger = Logger.new(STDOUT)
config.logger.level = Logger.const_get(ENV['LOG_LEVEL'] ? ENV['LOG_LEVEL'].upcase : 'INFO')
だそうです.
| - | 09:29 | comments(1) | trackbacks(0)
deplyのときのアラート
        DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /tmp/build_370he1nbngi7a/Rakefile:7)
       "aaaaaaaaaaaaaaaaaaa"
       {:attributes=>[:photo], :maximum=>1048576}

| - | 09:05 | comments(1) | trackbacks(0)