method
server
rails latest stable - Class:
Rails::CommandsTasks
server()public
No documentation available.
# File railties/lib/rails/commands/commands_tasks.rb, line 81
def server
set_application_directory!
require_command!("server")
Rails::Server.new.tap do |server|
# We need to require application after the server sets environment,
# otherwise the --environment option given to the server won't propagate.
require APP_PATH
Dir.chdir(Rails.application.root)
server.start
end
end