From 77e2d2cd5d1e513de4616d3b71bc9c8478f6bcd1 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Wed, 1 Feb 2012 13:12:30 -0500 Subject: [PATCH] config for prod setup --- config/database.yml | 6 ------ config/environments/production.rb | 7 ++++++- db/seeds.rb | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/config/database.yml b/config/database.yml index f623808fea..cb689cc646 100644 --- a/config/database.yml +++ b/config/database.yml @@ -10,12 +10,6 @@ test: pool: 5 timeout: 5000 -production: - adapter: sqlite3 - database: db/production.sqlite3 - pool: 5 - timeout: 5000 - production: adapter: mysql2 database: habit_tracker_production diff --git a/config/environments/production.rb b/config/environments/production.rb index a8343268ba..7fb5038361 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,9 +1,14 @@ HabitTracker::Application.configure do # Settings specified here will take precedence over those in config/application.rb + + + # TODO disable assets config.assets.initialize_on_precompile or run rake assets:precompile on prod + # Needed for devise + config.action_mailer.default_url_options = { :host => 'habits.local' } # Code is not reloaded between requests config.cache_classes = true - + # Full error reports are disabled and caching is turned on config.consider_all_requests_local = false config.action_controller.perform_caching = true diff --git a/db/seeds.rb b/db/seeds.rb index c55e004730..d744a46816 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -6,7 +6,7 @@ # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel', city: cities.first) -lefnire = User.create!(email: "tylerrenelle@gmail.com", password: "root", password_confirmation: "root") +lefnire = User.create!(email: "tylerrenelle@gmail.com", password: "riastlin", password_confirmation: "riastlin") Habit.create!([ { name: "Focus", score: 8, position: 0, user_id: lefnire.id, notes: "(-1) 15m procrastination (+1) Pomorodo" },