Permalink
Browse files

Fix 'rake db:bootstrap' to work in production environment

Basically, we need to make sure we don't cache classes before the
production database is bootstrapped.  I'm getting annoyed by these load-
order errors.
  • Loading branch information...
1 parent 6282948 commit 8ca3c36470c1d47ab0538e6ffa1bb804c6e12f90 @emk emk committed Dec 8, 2008
Showing with 2 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 config/environments/production.rb
View
@@ -4,6 +4,7 @@ config/deploy.rb
db/*.sqlite3
log/*.log
public/assets
+public/cache
public/plugin_assets
tmp
themes/*
@@ -2,7 +2,7 @@
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
-config.cache_classes = true
+config.cache_classes = safe_to_load_application? ? true : false
# Use a different logger for distributed setups
# config.logger = SyslogLogger.new

0 comments on commit 8ca3c36

Please sign in to comment.