From 35ea91f88f692893638d1fc33965d9cbec5e2c81 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 3 Feb 2013 17:27:05 +0100 Subject: Turn into a neutral base for starting off new apps. --- config/application.rb | 2 +- config/deploy/database.yml.mysql | 4 ++-- config/deploy/refinery_setup.rb | 4 ++-- config/deploy/secret_token.rb | 2 +- config/environment.rb | 2 +- config/environments/development.rb | 2 +- config/environments/production.rb | 2 +- config/environments/test.rb | 2 +- config/initializers/refinery/core.rb | 2 +- config/initializers/refinery/core.rb.example | 2 +- config/initializers/secret_token.rb | 2 +- config/initializers/session_store.rb | 2 +- config/routes.rb | 2 +- 13 files changed, 15 insertions(+), 15 deletions(-) (limited to 'config') diff --git a/config/application.rb b/config/application.rb index e27ac93..7006797 100644 --- a/config/application.rb +++ b/config/application.rb @@ -15,7 +15,7 @@ if defined?(Bundler) # Bundler.require(:default, :assets, Rails.env) end -module ReligionsfrihetNo +module BetaWebApp class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers diff --git a/config/deploy/database.yml.mysql b/config/deploy/database.yml.mysql index ce28c6a..389a9b2 100644 --- a/config/deploy/database.yml.mysql +++ b/config/deploy/database.yml.mysql @@ -15,7 +15,7 @@ test: &test production: &production adapter: mysql2 host: localhost - database: religionsfrihet_i_praksis - username: rip_admin + database: your_production_database + username: your_db_admin password: <%= Capistrano::CLI.ui.ask("Enter MySQL password: ") %> encoding: utf8 diff --git a/config/deploy/refinery_setup.rb b/config/deploy/refinery_setup.rb index 6805dfe..da6616a 100644 --- a/config/deploy/refinery_setup.rb +++ b/config/deploy/refinery_setup.rb @@ -19,8 +19,8 @@ Capistrano::Configuration.instance.load do Refinery::Core.configure do |config| config.rescue_not_found = Rails.env.production? config.s3_backend = !(ENV['S3_KEY'].nil? || ENV['S3_SECRET'].nil?) - config.base_cache_key = :rip - config.site_name = "Religionsfrihet i Praksis" + config.site_name = "Company Name" + config.base_cache_key = #{config.site_name.parameterize('_').to_sym} config.authenticity_token_on_frontend = true config.dragonfly_secret = "#{SecureRandom.hex(24)}" config.ie6_upgrade_message_enabled = true diff --git a/config/deploy/secret_token.rb b/config/deploy/secret_token.rb index 7c11ec0..dc2e19a 100644 --- a/config/deploy/secret_token.rb +++ b/config/deploy/secret_token.rb @@ -13,7 +13,7 @@ Capistrano::Configuration.instance.load do task :setup, :except => { :no_release => true } do default_template = <<-EOF - ReligionsfrihetNo::Application.config.secret_token = '#{`bundle exec rake secret`}' + BetaWebApp::Application.config.secret_token = '#{`bundle exec rake secret`}' EOF run "mkdir -p #{shared_path}/config" diff --git a/config/environment.rb b/config/environment.rb index 3417c7b..ab4f5fb 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -2,4 +2,4 @@ require File.expand_path('../application', __FILE__) # Initialize the rails application -ReligionsfrihetNo::Application.initialize! +BetaWebApp::Application.initialize! diff --git a/config/environments/development.rb b/config/environments/development.rb index 31efae2..42ce578 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,4 +1,4 @@ -ReligionsfrihetNo::Application.configure do +BetaWebApp::Application.configure do # Settings specified here will take precedence over those in config/application.rb # In the development environment your application's code is reloaded on diff --git a/config/environments/production.rb b/config/environments/production.rb index 8ccb3a8..65c0e3c 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,4 +1,4 @@ -ReligionsfrihetNo::Application.configure do +BetaWebApp::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded between requests diff --git a/config/environments/test.rb b/config/environments/test.rb index efec97a..0996497 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,4 +1,4 @@ -ReligionsfrihetNo::Application.configure do +BetaWebApp::Application.configure do # Settings specified here will take precedence over those in config/application.rb # The test environment is used exclusively to run your application's diff --git a/config/initializers/refinery/core.rb b/config/initializers/refinery/core.rb index 0d08447..ef476ce 100644 --- a/config/initializers/refinery/core.rb +++ b/config/initializers/refinery/core.rb @@ -15,7 +15,7 @@ Refinery::Core.configure do |config| # config.base_cache_key = :refinery # Site name - config.site_name = "Religionsfrihet i Praksis" + config.site_name = "Company Name" # This activates Google Analytics tracking within your website. If this # config is left blank or set to UA-xxxxxx-x then no remote calls to diff --git a/config/initializers/refinery/core.rb.example b/config/initializers/refinery/core.rb.example index 0d08447..ef476ce 100644 --- a/config/initializers/refinery/core.rb.example +++ b/config/initializers/refinery/core.rb.example @@ -15,7 +15,7 @@ Refinery::Core.configure do |config| # config.base_cache_key = :refinery # Site name - config.site_name = "Religionsfrihet i Praksis" + config.site_name = "Company Name" # This activates Google Analytics tracking within your website. If this # config is left blank or set to UA-xxxxxx-x then no remote calls to diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index 4169eb1..66c9021 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -4,4 +4,4 @@ # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. -ReligionsfrihetNo::Application.config.secret_token = '326727027aa26095e98aeccc39abfdabb117fb93d843ea3f89330f6120bcbd3a56566124c3667d554793783b45a0d1aed68b4923944032c14ee40752870667d5' +BetaWebApp::Application.config.secret_token = '326727027aa26095e98aeccc39abfdabb117fb93d843ea3f89330f6120bcbd3a56566124c3667d554793783b45a0d1aed68b4923944032c14ee40752870667d5' diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index 0eb8a1e..1b9705c 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -3,4 +3,4 @@ # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "rails generate session_migration") -ReligionsfrihetNo::Application.config.session_store :active_record_store +BetaWebApp::Application.config.session_store :active_record_store diff --git a/config/routes.rb b/config/routes.rb index 86c7a47..2eb025f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,4 @@ -ReligionsfrihetNo::Application.routes.draw do +BetaWebApp::Application.routes.draw do # This line mounts Refinery's routes at the root of your application. # This means, any requests to the root URL of your application will go to Refinery::PagesController#home. -- cgit v1.2.3