debian-mirror-gitlab/lib/tasks/dev.rake

23 lines
548 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
2014-09-02 18:07:02 +05:30
task dev: ["dev:setup"]
namespace :dev do
2020-03-13 15:44:24 +05:30
desc "GitLab | Dev | Setup developer environment (db, fixtures)"
2017-08-17 22:00:37 +05:30
task setup: :environment do
2014-09-02 18:07:02 +05:30
ENV['force'] = 'yes'
Rake::Task["gitlab:setup"].invoke
2019-12-26 22:10:19 +05:30
# Make sure DB statistics are up to date.
ActiveRecord::Base.connection.execute('ANALYZE')
2014-09-02 18:07:02 +05:30
Rake::Task["gitlab:shell:setup"].invoke
end
2018-03-17 18:26:18 +05:30
2020-03-13 15:44:24 +05:30
desc "GitLab | Dev | Eager load application"
2018-03-17 18:26:18 +05:30
task load: :environment do
2019-07-07 11:18:12 +05:30
Rails.configuration.eager_load = true
2018-03-17 18:26:18 +05:30
Rails.application.eager_load!
end
2014-09-02 18:07:02 +05:30
end