From 25d6e855a436e0b6ce15dd78cde255433ee753b6 Mon Sep 17 00:00:00 2001 From: echarp Date: Fri, 1 Aug 2014 01:03:51 +0200 Subject: [PATCH] Optimisation pour la gestion des assets --- config/database.yml | 5 ++--- config/environments/production.rb | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/database.yml b/config/database.yml index c85bd421..eb9f4fb5 100644 --- a/config/database.yml +++ b/config/database.yml @@ -1,4 +1,4 @@ -developmen: +development: adapter: sqlite3 pool: 5 timeout: 5000 @@ -13,8 +13,7 @@ test: timeout: 5000 database: db/test.sqlite3 -#production: -development: +production: adapter: mysql2 encoding: utf8 database: adl_fr diff --git a/config/environments/production.rb b/config/environments/production.rb index 98cf2785..b269b326 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -56,6 +56,7 @@ Rails.application.configure do # Enable serving of images, stylesheets, and JavaScripts from an asset server. # config.action_controller.asset_host = "http://assets.example.com" + config.action_controller.asset_host = "http://assets%d.agendadulibre.org" # Precompile additional assets. # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.