Sha256: db66b8521e9a7f7b8dcd4ea2b480ed20bd55614ba324ea70f292091be314b799
Contents?: true
Size: 794 Bytes
Versions: 9
Compression:
Stored size: 794 Bytes
Contents
#!/usr/bin/env ruby # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. APP_PATH = File.expand_path('../../config/application', __FILE__) require File.expand_path('../../config/boot', __FILE__) ENV['RAILS_ENV'] ||= 'development' # THIS IS NEW: require "rails/commands/server" module Rails class Server def default_options super.merge({ :Port => (ENV['SERVER_PORT'] || 3000), :environment => (ENV['RAILS_ENV'] || "development").dup, :daemonize => false, :debugger => false, :pid => File.expand_path("tmp/pids/server.pid"), :config => File.expand_path("config.ru") }) end end end # END OF CHANGE require 'rails/commands'
Version data entries
9 entries across 9 versions & 1 rubygems