mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 07:13:44 +08:00
fb25985b91
This is a bit weird with the Rakefiles but makes it consistent. Found with rpmlint.
13 lines
477 B
Ruby
Executable File
13 lines
477 B
Ruby
Executable File
#!/usr/bin/env rake
|
|
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
|
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
|
|
|
require File.expand_path('../config/application', __FILE__)
|
|
|
|
Discourse::Application.load_tasks
|
|
|
|
# this prevents crashes when migrating a database in production in certain
|
|
# PostgreSQL configuations when trying to create structure.sql
|
|
Rake::Task["db:structure:dump"].clear if Rails.env.production?
|
|
|