Fix to run on RAILS_ENV=production by ./bin/fluentd-ui

This commit is contained in:
uu59 2014-05-28 10:51:09 +09:00
parent 35063da7da
commit c6470c4099
4 changed files with 9 additions and 4 deletions

View File

@ -10,8 +10,8 @@
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
* file per style scope.
*
*= require sb-admin-v2/bootstrap
*= require "sb-admin-v2/sb-admin"
*= require sb-admin-v2/bootstrap.css
*= require sb-admin-v2/sb-admin
*= require "sb-admin-v2/font-awesome/scss/font-awesome.scss"
*= require_tree .
*= require_self

View File

@ -5,4 +5,6 @@ require "securerandom"
dir = File.expand_path("../../", __FILE__)
ENV["BUNDLE_GEMFILE"] ||= File.join(dir, "Gemfile.production")
ENV["SECRET_KEY_BASE"] ||= SecureRandom.hex(64)
ENV["RAILS_ENV"] ||= "production"
system(*%W(bundle exec rake db:create db:migrate db:seed))
system(*%W(bundle exec rackup -E production #{dir}/config.ru))

View File

@ -2,7 +2,7 @@ Rails.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
config.cache_classes = false
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web servers
@ -65,4 +65,8 @@ Rails.application.configure do
# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false
# Don't concat assets for font-awesome path resolving, instead of changing url in css files
config.assets.debug = true
end

View File

@ -5828,4 +5828,3 @@ td.visible-print {
display: none !important;
}
}
/*# sourceMappingURL=bootstrap.css.map */