2014-03-15 05:39:35 -04:00
|
|
|
task dev: ["dev:setup"]
|
|
|
|
|
2013-08-26 06:20:45 -04:00
|
|
|
namespace :dev do
|
2020-01-23 01:08:32 -05:00
|
|
|
desc "GitLab | Dev | Setup developer environment (db, fixtures)"
|
2017-02-22 13:18:40 -05:00
|
|
|
task setup: :environment do
|
2013-08-26 06:20:45 -04:00
|
|
|
ENV['force'] = 'yes'
|
2014-03-15 05:39:35 -04:00
|
|
|
Rake::Task["gitlab:setup"].invoke
|
2019-11-15 07:06:12 -05:00
|
|
|
|
|
|
|
# Make sure DB statistics are up to date.
|
|
|
|
ActiveRecord::Base.connection.execute('ANALYZE')
|
|
|
|
|
2013-08-26 06:20:45 -04:00
|
|
|
Rake::Task["gitlab:shell:setup"].invoke
|
|
|
|
end
|
2017-12-25 05:20:50 -05:00
|
|
|
|
2020-01-23 01:08:32 -05:00
|
|
|
desc "GitLab | Dev | Eager load application"
|
2017-12-25 05:20:50 -05:00
|
|
|
task load: :environment do
|
2019-02-06 07:41:17 -05:00
|
|
|
Rails.configuration.eager_load = true
|
2017-12-25 05:20:50 -05:00
|
|
|
Rails.application.eager_load!
|
|
|
|
end
|
2013-08-26 06:20:45 -04:00
|
|
|
end
|