mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 11:36:45 +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
|
||||
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
|
||||
|
|
|
|||
|
|
@ -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" },
|
||||
|
|
|
|||
Loading…
Reference in a new issue