我在Digitalocean上创建并构建了一个服务器,它的centos 6服务器上运行了nodejs,并在其上安装了rails。它有nginx和乘客一起运行,我正在使用capistrano进行部署以使用postgres作为生产数据库来使用。一切都安装好了,并设置了数据库。
我已经部署了网站,并且capistrano部署工作正常,没有任何错误,但是当我转到暂存网站时,它有一个错误。我正在尝试获取此日志,但我似乎无法找到它们。我已经尝试了/log/staging.log文件,并且我已将/environments/staging.rb文件设置为如下所示:
PopupHub::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests
config.cache_classes = true
# Full error reports are disabled and caching is turned on
config.consider_all_requests_local = true
config.action_controller.perform_caching = true
# Disable Rails's static asset server (Apache or nginx will already do this)
config.serve_static_assets = false
# Compress JavaScripts and CSS
config.assets.compress = true
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = false
# Generate digests for assets URLs
config.assets.digest = true
# Version of your assets, change this if you want to expire all your assets.
config.assets.version = '1.0'
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation can not be found)
config.i18n.fallbacks = true
# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify
# Log the query plan for queries taking more than this (works
# with SQLite, MySQL, and PostgreSQL)
# config.active_record.auto_explain_threshold_in_seconds = 0.5
SitemapGenerator.verbose = false
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
config.autoload_paths += %W(#{config.root}/app/models/ckeditor)
config.assets.precompile += Ckeditor.assets
config.assets.precompile += %w(ckeditor/*)
end
当我使用tail -f log/staging.log
时,除了在应用程序IP地址上刷新页面时没有记录的迁移信息,我什么也得不到。
任何人都可以帮我看看我能在哪里正确找到日志或让它们正常工作吗?