2014-02-06 14:15:00 -05:00
|
|
|
#!/usr/bin/env ruby
|
2018-08-07 03:13:20 -04:00
|
|
|
|
2018-08-09 10:14:45 -04:00
|
|
|
if !ENV["RAILS_ENV"] && (ARGV[0] == "s" || ARGV[0] == "server")
|
2018-08-07 04:38:16 -04:00
|
|
|
ENV["UNICORN_PORT"] = "3000"
|
2018-08-13 18:49:57 -04:00
|
|
|
ENV["RAILS_LOGS_STDOUT"] ||= "1"
|
2018-08-07 03:13:20 -04:00
|
|
|
exec File.expand_path("unicorn", __dir__)
|
|
|
|
end
|
|
|
|
|
2017-08-31 00:06:56 -04:00
|
|
|
APP_PATH = File.expand_path('../config/application', __dir__)
|
2015-04-16 02:15:04 -04:00
|
|
|
require_relative '../config/boot'
|
|
|
|
require 'rails/commands'
|