aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--railties/lib/rails/commands.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/commands.rb b/railties/lib/rails/commands.rb
index 55744db275..500dcf7f9e 100644
--- a/railties/lib/rails/commands.rb
+++ b/railties/lib/rails/commands.rb
@@ -33,6 +33,7 @@ when 'c', 'console'
require APP_PATH
Rails::Console.start(Rails::Application)
when 's', 'server'
+ require APP_PATH
require 'rails/commands/server'
Dir.chdir(ROOT_PATH)
Rails::Server.start
@@ -68,4 +69,4 @@ when '--version', '-v'
else
puts "Error: Command not recognized"
puts HELP_TEXT
-end \ No newline at end of file
+end