132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
# File 'railties/lib/rails/commands/server/server_command.rb', line 132
def perform
set_application_directory!
prepare_restart
Rails::Server.new(server_options).tap do |server|
require APP_PATH
Dir.chdir(Rails.application.root)
if server.serveable?
print_boot_information(server.server, server.served_url)
after_stop_callback = -> { say "Exiting" unless options[:daemon] }
server.start(after_stop_callback)
else
say rack_server_suggestion(options[:using])
end
end
end
|