Merging
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
SitemapGenerator::Sitemap.default_host = "http://hackingoff.com"
|
||||
|
||||
SitemapGenerator::Sitemap.create do
|
||||
routes = Rails.application.routes.routes.map do |route|
|
||||
{alias: route.name, path: route.path.spec.to_s, controller: route.defaults[:controller], action: route.defaults[:action]}
|
||||
end
|
||||
|
||||
# Set a list of controllers you don't want to generate routes for.
|
||||
# /rails/info in particular maps to something inaccessible.
|
||||
# redirects have a nil controller. This prevents duplicate content penalties.
|
||||
banned_controllers = ["rails/info", nil]
|
||||
routes.reject! {|route| banned_controllers.include?(route[:controller])}
|
||||
|
||||
# sitemap_generator includes root by default; prevent duplication
|
||||
routes.reject! {|route| route[:path] == '/'}
|
||||
|
||||
routes.each {|route| add route[:path][0..-11]} # Strips off '(.:format)
|
||||
|
||||
# Notice the below if you're hosting Jekyll/Octopress in a subdirectory
|
||||
# or otherwise want to index content outside of Rails' routes.
|
||||
# add_to_index '/path/sitemap.xml'
|
||||
@@ -26,6 +26,7 @@ module BikeBike
|
||||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||
config.i18n.default_locale = :en #:de
|
||||
config.i18n.enforce_available_locales = false
|
||||
# config.action_controller.default_url_options = { :trailing_slash => true }
|
||||
#config.middleware.swap 'Rack::MethodOverride', 'Rack::MethodOverrideWithParams'
|
||||
#config.i18n.exception_handler = I18n::MissingTranslationExceptionHandler.new
|
||||
#require '/app/helpers/bike_bike_form_helper'
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
development:
|
||||
enabled: false
|
||||
host: bikebike.org
|
||||
|
||||
production:
|
||||
enabled: true
|
||||
host: cdn.bikebike.org
|
||||
protocol: https
|
||||
fallback_protocol: http
|
||||
@@ -1,6 +1,6 @@
|
||||
#require 'perftools'
|
||||
|
||||
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
|
||||
#OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
|
||||
|
||||
BikeBike::Application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.rb.
|
||||
@@ -45,12 +45,13 @@ BikeBike::Application.configure do
|
||||
}
|
||||
config.action_mailer.raise_delivery_errors = true
|
||||
config.action_mailer.perform_deliveries = true
|
||||
#config.force_ssl = true
|
||||
#config.action_mailer.default_charset = 'utf-8'
|
||||
|
||||
#Carmen.i18n_backend.locale_paths = ''
|
||||
#puts "CARMEN\t" + Carmen.i18n_backend.locale_paths
|
||||
|
||||
#PerfTools::CpuProfiler.start('/tmp/dev_prof')
|
||||
#config.serve_static_assets = true
|
||||
config.serve_static_assets = true
|
||||
#config.assets.precompile = false
|
||||
end
|
||||
|
||||
@@ -1,86 +1,102 @@
|
||||
BikeBike::Application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.rb.
|
||||
# Settings specified here will take precedence over those in config/application.rb.
|
||||
|
||||
# Code is not reloaded between requests.
|
||||
config.cache_classes = true
|
||||
# Code is not reloaded between requests.
|
||||
config.cache_classes = true
|
||||
|
||||
# Eager load code on boot. This eager loads most of Rails and
|
||||
# your application in memory, allowing both thread web servers
|
||||
# and those relying on copy on write to perform better.
|
||||
# Rake tasks automatically ignore this option for performance.
|
||||
config.eager_load = true
|
||||
# Eager load code on boot. This eager loads most of Rails and
|
||||
# your application in memory, allowing both thread web servers
|
||||
# and those relying on copy on write to perform better.
|
||||
# Rake tasks automatically ignore this option for performance.
|
||||
config.eager_load = true
|
||||
|
||||
# Full error reports are disabled and caching is turned on.
|
||||
config.consider_all_requests_local = false
|
||||
config.action_controller.perform_caching = true
|
||||
# Full error reports are disabled and caching is turned on.
|
||||
config.consider_all_requests_local = false
|
||||
config.action_controller.perform_caching = true
|
||||
|
||||
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
||||
# Add `rack-cache` to your Gemfile before enabling this.
|
||||
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
|
||||
# config.action_dispatch.rack_cache = true
|
||||
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
||||
# Add `rack-cache` to your Gemfile before enabling this.
|
||||
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
|
||||
# config.action_dispatch.rack_cache = true
|
||||
|
||||
# Disable Rails's static asset server (Apache or nginx will already do this).
|
||||
config.serve_static_assets = true
|
||||
# Disable Rails's static asset server (Apache or nginx will already do this).
|
||||
config.serve_static_assets = true
|
||||
|
||||
# Compress JavaScripts and CSS.
|
||||
config.assets.js_compressor = :uglifier
|
||||
# config.assets.css_compressor = :sass
|
||||
# Compress JavaScripts and CSS.
|
||||
config.assets.js_compressor = :uglifier
|
||||
# config.assets.css_compressor = :sass
|
||||
|
||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
||||
config.assets.compile = true
|
||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
||||
#config.assets.compile = true
|
||||
|
||||
# Generate digests for assets URLs.
|
||||
config.assets.digest = true
|
||||
# Generate digests for assets URLs.
|
||||
config.assets.digest = true
|
||||
|
||||
# Version of your assets, change this if you want to expire all your assets.
|
||||
config.assets.version = '1.0'
|
||||
# Version of your assets, change this if you want to expire all your assets.
|
||||
config.assets.version = '1.01'
|
||||
|
||||
# Specifies the header that your server uses for sending files.
|
||||
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
||||
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
||||
# Specifies the header that your server uses for sending files.
|
||||
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
||||
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
||||
|
||||
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
||||
# config.force_ssl = true
|
||||
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
||||
#config.force_ssl = true
|
||||
|
||||
# Set to :debug to see everything in the log.
|
||||
config.log_level = :info
|
||||
# Set to :debug to see everything in the log.
|
||||
config.log_level = :info
|
||||
|
||||
config.cache_classes = true
|
||||
config.serve_static_assets = true
|
||||
config.assets.compile = true
|
||||
config.assets.digest = true
|
||||
#config.cache_classes = true
|
||||
#config.serve_static_assets = true
|
||||
#config.assets.compile = true
|
||||
# config.assets.digest = true
|
||||
|
||||
# Prepend all log lines with the following tags.
|
||||
# config.log_tags = [ :subdomain, :uuid ]
|
||||
# Prepend all log lines with the following tags.
|
||||
# config.log_tags = [ :subdomain, :uuid ]
|
||||
|
||||
# Use a different logger for distributed setups.
|
||||
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
||||
# Use a different logger for distributed setups.
|
||||
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
||||
|
||||
# Use a different cache store in production.
|
||||
# config.cache_store = :mem_cache_store
|
||||
# Use a different cache store in production.
|
||||
# config.cache_store = :mem_cache_store
|
||||
|
||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
||||
# config.action_controller.asset_host = "http://assets.example.com"
|
||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
||||
# config.action_controller.asset_host = "http://assets.example.com"
|
||||
|
||||
# Precompile additional assets.
|
||||
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
||||
# config.assets.precompile += %w( search.js )
|
||||
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)
|
||||
# Precompile additional assets.
|
||||
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
||||
# config.assets.precompile += %w( search.js )
|
||||
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)
|
||||
config.action_controller.asset_host = "https://cdn.bikebike.org"
|
||||
|
||||
# Ignore bad email addresses and do not raise email delivery errors.
|
||||
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
||||
# config.action_mailer.raise_delivery_errors = false
|
||||
# Ignore bad email addresses and do not raise email delivery errors.
|
||||
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
||||
# config.action_mailer.raise_delivery_errors = false
|
||||
|
||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||
# the I18n.default_locale when a translation can not be found).
|
||||
config.i18n.fallbacks = true
|
||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||
# the I18n.default_locale when a translation can not be found).
|
||||
config.i18n.fallbacks = true
|
||||
|
||||
# Send deprecation notices to registered listeners.
|
||||
config.active_support.deprecation = :notify
|
||||
# Send deprecation notices to registered listeners.
|
||||
config.active_support.deprecation = :notify
|
||||
|
||||
# Disable automatic flushing of the log to improve performance.
|
||||
# config.autoflush_log = false
|
||||
# Disable automatic flushing of the log to improve performance.
|
||||
# config.autoflush_log = false
|
||||
|
||||
# Use default logging formatter so that PID and timestamp are not suppressed.
|
||||
config.log_formatter = ::Logger::Formatter.new
|
||||
# Use default logging formatter so that PID and timestamp are not suppressed.
|
||||
config.log_formatter = ::Logger::Formatter.new
|
||||
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.smtp_settings = {
|
||||
:enable_starttls_auto => true,
|
||||
:address => 'mail.bikebike.org',
|
||||
:domain => 'bikebike.org',
|
||||
:port => 587,
|
||||
:authentication => :plain,
|
||||
:enable_starttls_auto => true,
|
||||
:openssl_verify_mode => 'none',
|
||||
:user_name => 'info@bikebike.org',
|
||||
:password => 'NewOrleans@)!#'
|
||||
}
|
||||
config.action_mailer.raise_delivery_errors = true
|
||||
config.action_mailer.perform_deliveries = true
|
||||
end
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
CarrierWave.configure do |config|
|
||||
if Rails.env == "production"
|
||||
config.asset_host = "https://cdn.bikebike.org"
|
||||
end
|
||||
end
|
||||
@@ -1,3 +1,3 @@
|
||||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
BikeBike::Application.config.session_store :cookie_store, key: '_starterapp_session'
|
||||
BikeBike::Application.config.session_store :active_record_store
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow: /
|
||||
@@ -0,0 +1,3 @@
|
||||
User-agent: *
|
||||
Disallow: /translations/
|
||||
Disallow: /login/
|
||||
+37
-29
@@ -1,32 +1,38 @@
|
||||
BikeBike::Application.routes.draw do
|
||||
|
||||
resources :events
|
||||
#resources :events
|
||||
#resources :event_types
|
||||
#resources :workshop_requested_resources
|
||||
#resources :workshop_facilitators
|
||||
#resources :registration_form_fields
|
||||
|
||||
resources :event_types
|
||||
|
||||
resources :workshop_requested_resources
|
||||
|
||||
resources :workshop_facilitators
|
||||
|
||||
resources :registration_form_fields
|
||||
|
||||
resources :conferences, :param => 'slug' do
|
||||
get :hosts
|
||||
get :registration
|
||||
resources :workshops, :param => 'slug'
|
||||
get :registration
|
||||
#resources :registrations, :path => 'registration' do
|
||||
# get :form, on: :collection
|
||||
#end
|
||||
get 'registration/form' => 'conferences#registration', :sub_action => "form", as: 'registration_form'
|
||||
get 'registration/form/register' => 'conferences#registration', :sub_action => "register", as: 'registration_register'
|
||||
get 'registration/form/stats' => 'conferences#registration', :sub_action => "stats", as: 'registration_stats'
|
||||
post :nonhosts
|
||||
post 'registration/form/add-field' => 'conferences#add_field', as: 'registration_add_field'
|
||||
post 'registration/form/remove-field' => 'conferences#remove_field', as: 'registration_remove_field'
|
||||
post 'registration/form/reorder' => 'conferences#reorder', as: 'registration_reorder'
|
||||
resources :conference_types, :param => :type, :path => '/conferences', :as => :conference, :except => :index do
|
||||
resources :conferences, :param => :slug, :path => '/' do
|
||||
#get :hosts
|
||||
#get :registration
|
||||
#get :registration
|
||||
#resources :workshops, :param => 'slug'
|
||||
#get :register, :param => 'step'
|
||||
#post 'register/next' => 'conferences#register_submit'
|
||||
# match 'register(/:step)' => 'conferences#register', via: [:get, :post]
|
||||
#patch 'register/step/:step' => 'conferences#register_step'
|
||||
#resources :registrations, :path => 'registration' do
|
||||
# get :form, on: :collection
|
||||
#end
|
||||
#get 'registration/form' => 'conferences#registration', :sub_action => "form", as: 'registration_form'
|
||||
#get 'registration/form/register' => 'conferences#registration', :sub_action => "register", as: 'registration_register'
|
||||
#get 'registration/form/stats' => 'conferences#registration', :sub_action => "stats", as: 'registration_stats'
|
||||
#post :nonhosts
|
||||
#post 'registration/form/add-field' => 'conferences#add_field', as: 'registration_add_field'
|
||||
#post 'registration/form/remove-field' => 'conferences#remove_field', as: 'registration_remove_field'
|
||||
#post 'registration/form/reorder' => 'conferences#reorder', as: 'registration_reorder'
|
||||
|
||||
#post 'registration/form/reorder' => 'conferences#reorder', as: 'registration_reorder'
|
||||
end
|
||||
end
|
||||
|
||||
resources :conferences, :only => :index
|
||||
|
||||
resources :organizations, :param => 'slug' do
|
||||
get :members
|
||||
get :identity
|
||||
@@ -37,13 +43,12 @@ BikeBike::Application.routes.draw do
|
||||
resources :users
|
||||
resources :user_sessions
|
||||
|
||||
resources :conference_types
|
||||
|
||||
resources :workshop_streams
|
||||
resources :workshop_resources
|
||||
resources :workshop_presentation_styles
|
||||
#resources :workshop_streams
|
||||
#resources :workshop_resources
|
||||
#resources :workshop_presentation_styles
|
||||
|
||||
resources :locations
|
||||
#resources :locations
|
||||
|
||||
post '/translate/' => 'pages#translate'
|
||||
post '/location/territories/' => 'pages#location_territories'
|
||||
@@ -59,6 +64,9 @@ BikeBike::Application.routes.draw do
|
||||
get "oauth/callback" => "oauths#callback"
|
||||
get "oauth/:provider" => "oauths#oauth", :as => :auth_at_provider
|
||||
|
||||
get 'robots.txt' => 'pages#robots'
|
||||
get 'resources' => 'pages#resources'
|
||||
|
||||
root 'pages#home'
|
||||
|
||||
end
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
# Set the host name for URL creation
|
||||
SitemapGenerator::Sitemap.default_host = "http://bikebike.org"
|
||||
|
||||
SitemapGenerator::Sitemap.create do
|
||||
# Put links creation logic here.
|
||||
#
|
||||
# The root path '/' and sitemap index file are added automatically for you.
|
||||
# Links are added to the Sitemap in the order they are specified.
|
||||
#
|
||||
# Usage: add(path, options={})
|
||||
# (default options are used if you don't specify)
|
||||
#
|
||||
# Defaults: :priority => 0.5, :changefreq => 'weekly',
|
||||
# :lastmod => Time.now, :host => default_host
|
||||
#
|
||||
# Examples:
|
||||
#
|
||||
# Add '/articles'
|
||||
#
|
||||
# add articles_path, :priority => 0.7, :changefreq => 'daily'
|
||||
#
|
||||
# Add all articles:
|
||||
#
|
||||
# Article.find_each do |article|
|
||||
# add article_path(article), :lastmod => article.updated_at
|
||||
# end
|
||||
end
|
||||
@@ -0,0 +1 @@
|
||||
rails_env = ENV['RAILS_ENV'] || 'production'
|
||||
Reference in New Issue
Block a user