mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:15:05 +08:00
f3549291a3
This commit also cleans up a bunch of pointless noise each time we boot app - narrative was loading i18n cause redefinition of consts - discourse.rb was loaded twice as was auth - bin/unicorn now does all the smart things and boots unicron in dev - bin/rails s will boot unicorn with no params - remove bin/puma which only causes confusion
10 lines
249 B
Ruby
Executable File
10 lines
249 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
|
|
if !ENV["RAILS_ENV"] && (ARGV == ["s"] || ARGV["server"])
|
|
exec File.expand_path("unicorn", __dir__)
|
|
end
|
|
|
|
APP_PATH = File.expand_path('../config/application', __dir__)
|
|
require_relative '../config/boot'
|
|
require 'rails/commands'
|