config for prod setup
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
+1
-1
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user