Skip to content

Instantly share code, notes, and snippets.

@kumekay
Created August 18, 2013 17:08
Show Gist options
  • Save kumekay/6262751 to your computer and use it in GitHub Desktop.
Save kumekay/6262751 to your computer and use it in GitHub Desktop.
LocomotiveCMS 2.2.2 Multisite
/home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/locomotive_cms-2.2.2/lib/locomotive.rb:98:in `configure_multi_sites': undefined method `domain' for true:TrueClass (NoMethodError)
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/locomotive_cms-2.2.2/lib/locomotive.rb:49:in `after_configure'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/locomotive_cms-2.2.2/lib/locomotive.rb:42:in `configure'
from /home/ku/Dropbox/neokul/config/initializers/locomotive.rb:1:in `<top (required)>'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:245:in `load'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:245:in `block in load'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:245:in `load'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/railties-3.2.14/lib/rails/engine.rb:593:in `block (2 levels) in <class:Engine>'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/railties-3.2.14/lib/rails/engine.rb:592:in `each'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/railties-3.2.14/lib/rails/engine.rb:592:in `block in <class:Engine>'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `instance_exec'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `run'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/railties-3.2.14/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `each'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `run_initializers'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/railties-3.2.14/lib/rails/application.rb:136:in `initialize!'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/ku/Dropbox/neokul/config/environment.rb:5:in `<top (required)>'
from config.ru:3:in `require'
from config.ru:3:in `block in <main>'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from config.ru:in `new'
from config.ru:in `<main>'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/puma-2.5.1/lib/puma/configuration.rb:93:in `app'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/puma-2.5.1/lib/puma/runner.rb:105:in `load_and_bind'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/puma-2.5.1/lib/puma/single.rb:73:in `run'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/puma-2.5.1/lib/puma/cli.rb:442:in `run'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/gems/puma-2.5.1/bin/puma:10:in `<top (required)>'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/bin/puma:23:in `load'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/bin/puma:23:in `<main>'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/bin/ruby_noexec_wrapper:14:in `eval'
from /home/ku/.rvm/gems/ruby-2.0.0-p247@neokul/bin/ruby_noexec_wrapper:14:in `<main>'
Locomotive.configure do |config|
# A single locomotiveCMS instance can serve one single site or many.
# If you want to run many different websites, you will have to specify
# your own domain name (ex: locomotivehosting.com).
#
# # Ex:
config.multi_sites do |multi_sites|
# each new website you add will have a default entry based on a subdomain
# and the multi_site_domain value (ex: website_1.locomotivehosting.com).
multi_sites.domain = 'neokul.tst' #'myhostingplatform.com'
# define the reserved subdomains
# Ex:
multi_sites.reserved_subdomains = %w(www admin email blog webmail mail support help site sites)
end
config.multi_sites = true
# config.domain = 'neokul.tst'
# config.multi_sites.reserved_subdomains = %w(www admin email blog webmail mail support help site sites)
# configure how many items we display in sub menu in the "Contents" section.
# config.ui = {
# latest_entries_nb: 5,
# max_content_types: 4,
# per_page: 10
# }
# default locale (for now, only en, de, fr, pl, pt-BR, it, nb, ja and zh-CN are supported)
config.default_locale = :en
# available locales suggested to "localize" a site. You will have to pick up at least one among that list.
# config.site_locales = %w{en de fr pl pt-BR it nl nb es ru ja zh-CN}
# tell if logs are enabled. Useful for debug purpose.
config.enable_logs = true
# Uncomment this line to force LocomotiveCMS to redirect all requests in the
# back-office to https in production.
# config.enable_admin_ssl = Rails.env.production?
# configure the e-mail address which will be shown in the DeviseMailer, NotificationMailer, ...etc
# if you do not put the domain name in the email, LocomotiveCMS will take the default domain name depending
# on your deployment target (server, Heroku, Bushido, ...etc)
#
# Ex:
# config.mailer_sender = '[email protected]'
# # => '[email protected]' (Heroku), '[email protected]' (Bushido), '[email protected]' (Dev) or 'support@<your_hosting_platform>' (Multi-sites)
config.mailer_sender = '[email protected]'
# allow apps using the engine to add their own Liquid drops, variables and similar available
# in Liquid templates, extending the assigns used while rendering.
# follow the Dependency Injection pattern
# config.context_assign_extensions = {}
# add extra classes other than the defined content types among a site which will potentially used by the templatized pages.
# config.models_for_templatization = %w(Product)
# "Public" forms can be protected from Cross-Site Request Forgery (CSRF) attacks.
# By default, that protection is disabled (false) in order to keep backwards compatibility with the existing public forms.
#
# Note: we strongly recommend to enable it. See the documentation about the "csrf_param" liquid tag.
#
config.csrf_protection = true
# Rack-cache settings, mainly used for the inline resizing image module. Default options:
# config.rack_cache = {
# verbose: true,
# metastore: URI.encode("file:#{Rails.root}/tmp/dragonfly/cache/meta"), # URI encoded in case of spaces
# entitystore: URI.encode("file:#{Rails.root}/tmp/dragonfly/cache/body")
# }
# If you do want to disable it for good, just use the following syntax
# config.rack_cache = false
#
# Note: by default, rack/cache is disabled in the Heroku platform
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment