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

17 lines
404 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
task dev: ["dev:setup"]
namespace :dev do
2015-09-11 14:41:01 +05:30
desc "GitLab | 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
Rake::Task["gitlab:shell:setup"].invoke
end
2018-03-17 18:26:18 +05:30
desc "GitLab | Eager load application"
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