diff --git a/config/environments/production.rb b/config/environments/production.rb index d5c783a..87c79bf 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -44,7 +44,7 @@ Noosfero::Application.configure do # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) # Use a different cache store in production - config.cache_store = :dalli_store, "127.0.0.1:11211" + config.cache_store = :dalli_store, "127.0.0.1:11211", { :namespace => "noosfero/#{Noosfero::VERSION}" } # Enable serving of images, stylesheets, and javascripts from an asset server # config.action_controller.asset_host = "http://assets.example.com" diff --git a/debian/noosfero.prerm b/debian/noosfero.prerm index a25c14b..b511688 100644 --- a/debian/noosfero.prerm +++ b/debian/noosfero.prerm @@ -8,14 +8,7 @@ dbc_go noosfero $@ #DEBHELPER# -# some dirty work is needed after Noosfero is stopped if [ "$1" = "upgrade" ]; then - # delete cached files - rm -f /var/lib/noosfero-data/cache/* - - # restart memcache - invoke-rc.d memcached restart - # stop debconf to avoid the problem with infinite hanging, cfe # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=295477 db_stop diff --git a/debian/rules b/debian/rules index 4b26c0d..8b650cb 100755 --- a/debian/rules +++ b/debian/rules @@ -25,7 +25,7 @@ override_dh_auto_install: debian/filter-gemfile > $(CURDIR)/debian/noosfero/usr/share/noosfero/Gemfile override_dh_installinit: - dh_installinit -pnoosfero --onlyscripts + dh_installinit -pnoosfero --onlyscripts --restart-after-upgrade override_dh_clean: dh_clean -- libgit2 0.21.2