mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
config for prod setup
This commit is contained in:
parent
4673d1b306
commit
77e2d2cd5d
3 changed files with 7 additions and 8 deletions
|
|
@ -10,12 +10,6 @@ test:
|
||||||
pool: 5
|
pool: 5
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
|
|
||||||
production:
|
|
||||||
adapter: sqlite3
|
|
||||||
database: db/production.sqlite3
|
|
||||||
pool: 5
|
|
||||||
timeout: 5000
|
|
||||||
|
|
||||||
production:
|
production:
|
||||||
adapter: mysql2
|
adapter: mysql2
|
||||||
database: habit_tracker_production
|
database: habit_tracker_production
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,14 @@
|
||||||
HabitTracker::Application.configure do
|
HabitTracker::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
|
||||||
|
|
||||||
|
|
||||||
|
# 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
|
# Code is not reloaded between requests
|
||||||
config.cache_classes = true
|
config.cache_classes = true
|
||||||
|
|
||||||
# Full error reports are disabled and caching is turned on
|
# Full error reports are disabled and caching is turned on
|
||||||
config.consider_all_requests_local = false
|
config.consider_all_requests_local = false
|
||||||
config.action_controller.perform_caching = true
|
config.action_controller.perform_caching = true
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
||||||
# Mayor.create(name: 'Emanuel', city: cities.first)
|
# 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!([
|
Habit.create!([
|
||||||
{ name: "Focus", score: 8, position: 0, user_id: lefnire.id, notes: "(-1) 15m procrastination
|
{ name: "Focus", score: 8, position: 0, user_id: lefnire.id, notes: "(-1) 15m procrastination
|
||||||
(+1) Pomorodo" },
|
(+1) Pomorodo" },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue