Logo
Explore Help
Sign In
IntenseWebs/discourse
3
0
Fork 0
You've already forked discourse
mirror of https://github.com/discourse/discourse.git synced 2025-02-25 18:55:32 -06:00
Code Issues Packages Projects Releases Wiki Activity
Files
4a00772c199b18c49c4b16c2299a08712ec83ca7
discourse/bin/rake

13 lines
358 B
Plaintext
Raw Normal View History

Include binstubs generated by Rails 4 Commit b516ecc added `bin/` to the .gitignore file. Now that Discourse runs using Rails 4 by default, however, we should include the binstubs generated by `rake rails:update:bin` in version control as this is the recommendation of the Rails core team. Additionally, for those wishing to deploy Discourse to Heroku, these binstubs are actually mandatory according to [this article](https://devcenter.heroku.com/articles/rails4). Other binstubs can continue to be ignored. Signed-off-by: David Celis <me@davidcel.is>
2014-02-06 11:15:00 -08:00
#!/usr/bin/env ruby
DEV: always run migrations for plugins in dev Otherwise devs forget to run plugin migrations and get confused when test does not work. We ship critical migrations in the bundled polls plugin.
2018-12-06 17:19:46 +11:00
if ENV['RAILS_ENV'] == 'test' && ENV['LOAD_PLUGINS'].nil?
if ARGV.include?('db:migrate')
STDERR.puts "You are attempting to run migrations in your test environment and are not loading plugins, setting LOAD_PLUGINS to 1"
ENV['LOAD_PLUGINS'] = '1'
end
end
Revert "travis likes old bundler" This reverts commit 1adda31cbc6ae26d94191bf11d8165297b8d24c0.
2015-04-16 16:15:04 +10:00
require_relative '../config/boot'
require 'rake'
Rake.application.run
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 164ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API