Skip to content

Commit

Permalink
added README instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Al Snow committed Sep 12, 2012
1 parent fce80fd commit e1be8a7
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
8 changes: 4 additions & 4 deletions Gemfile
Expand Up @@ -16,7 +16,7 @@ gem 'cancan', '~> 1.6.7'
gem 'compass', '~> 0.12.rc.0'
gem 'compass-rails'
# gem 'compass_twitter_bootstrap'
# gem 'dalli', '~> 1.0.2'
gem 'dalli', '~> 1.0.2'

gem "friendly_id", "~> 3.3"
gem 'haml', ">= 3.0.13"#, ">= 3.0.4"#, "2.2.21"#,
Expand All @@ -34,12 +34,12 @@ gem 'paperclip', '~> 2.4.5'
gem 'prawn', '~> 0.12.0'

gem "rails3-generators", :git => "https://github.com/neocoin/rails3-generators.git"
gem 'rmagick', :require => 'RMagick'
gem 'rmagick', :require => 'RMagick'

gem 'rake', '~> 0.9.2'
gem 'state_machine', '~> 1.1.2'
#gem 'sunspot_solr'
#gem 'sunspot_rails', '~> 1.3.0rc'
gem 'sunspot_solr'
gem 'sunspot_rails', '~> 1.3.0rc'
gem 'will_paginate', '~> 3.0.0'
gem 'dynamic_form'

Expand Down
4 changes: 2 additions & 2 deletions app/models/product.rb
Expand Up @@ -248,7 +248,7 @@ def sanitize_data
end

## If you want to use SOLR search uncomment the following:
=begin
## =begin
Product.class_eval do
searchable do
text :name, :default_boost => 2
Expand All @@ -268,4 +268,4 @@ def self.standard_search(args, params)
end
end
end
=end
## =end
6 changes: 3 additions & 3 deletions config/environments/development.rb
Expand Up @@ -36,10 +36,10 @@
# Only use best-standards-support built into browsers
config.action_dispatch.best_standards_support = :builtin

config.cache_store = :memory_store

#config.cache_store = :dalli_store
#config.cache_store = :memory_store
config.cache_store = :dalli_store
#config.cache_store = :redis_store

# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
Expand Down
9 changes: 4 additions & 5 deletions config/environments/production.rb
Expand Up @@ -57,18 +57,17 @@

# If you have no front-end server that supports something like X-Sendfile,
# just comment this out and Rails will serve the files
config.cache_store = :memory_store
#config.cache_store = :dalli_store
#config.cache_store = :memory_store
config.cache_store = :dalli_store
# Use a different cache store in production
#config.cache_store = :mem_cache_store

# See everything in the log (default is :info)
# config.log_level = :debug

# Use a different logger for distributed setups
# config.logger = SyslogLogger.new

# Use a different cache store in production
# config.cache_store = :mem_cache_store

# Disable Rails's static asset server
# In production, Apache or nginx will already do this
config.serve_static_assets = false
Expand Down
6 changes: 3 additions & 3 deletions config/initializers/session_store.rb
@@ -1,4 +1,4 @@
Hadean::Application.config.session_store :cookie_store, :key => '_ror_ecommerce_session_pIUHGFhsgbhsvgfshbdhgh456jb3hhy387u'
#REMOVE FOR DALLI: Hadean::Application.config.session_store :cookie_store, :key => '_ror_ecommerce_session_pIUHGFhsgbhsvgfshbdhgh456jb3hhy387u'

puts '
************************************************
Expand All @@ -10,8 +10,8 @@
# go to the Gemfile and add "gem 'dalli'"
# bundle install
## Last UNCOMMENT the next 2 lines
# require 'action_dispatch/middleware/session/dalli_store'
# Hadean::Application.config.session_store :dalli_store, :key => '_hadean_session_ugrdr6765745ce4vy'
require 'action_dispatch/middleware/session/dalli_store'
Hadean::Application.config.session_store :dalli_store, :key => '_hadean_session_ugrdr6765745ce4vy'
#
# it is also recommended to change the cache store in config/environments/*.rb
# config.cache_store = :dalli_store
Expand Down

0 comments on commit e1be8a7

Please sign in to comment.