19 lines
444 B
Ruby
Executable File
19 lines
444 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
begin
|
|
load File.expand_path('../spring', __FILE__)
|
|
rescue LoadError => e
|
|
raise unless e.message.include?('spring')
|
|
end
|
|
if ENV['RAILS_ENV'] == 'development'
|
|
ENV['PORT'] = '9012'
|
|
end
|
|
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
|
require_relative '../config/boot'
|
|
require 'rails/commands'
|
|
|
|
if ENV['RAILS_ENV'] == 'test'
|
|
require 'simplecov'
|
|
SimpleCov.start 'rails'
|
|
puts "required simplecov"
|
|
end
|