upgrade(rails 5): no longer use rake to invoke rake tasks, use rails

though I left the case alone where the command would previously been
just `bundle exec rake`, as doing the same doesn't work for rails.
This commit is contained in:
Joseph Mastey
2017-01-19 13:59:40 -06:00
parent c310273606
commit 54b8c291ea
11 changed files with 22 additions and 23 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ module Railsgoat
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# Run "rails -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
+1 -1
View File
@@ -19,7 +19,7 @@ mysql:
password:
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# re-generated from your development database when you run "rails".
# Do not set this db to the same as development or production.
test:
adapter: sqlite3
+1 -1
View File
@@ -15,7 +15,7 @@ Railsgoat::Application.configure do
# config.action_dispatch.rack_cache = true
# Disable Rails's static asset server (Apache or nginx will already do this).
config.serve_static_files = false
config.public_file_server.enabled = false
# Compress JavaScripts and CSS
config.assets.compress = true
+2 -2
View File
@@ -8,8 +8,8 @@ Railsgoat::Application.configure do
config.cache_classes = true
# Configure static asset server for tests with Cache-Control for performance.
config.serve_static_files = true
config.static_cache_control = "public, max-age=3600"
config.public_file_server.enabled = true
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
# Show full error reports and disable caching.
config.consider_all_requests_local = true