1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

server command loads the application

This commit is contained in:
Jeremy Kemper 2010-02-04 10:50:14 -08:00
parent ca273d171c
commit 293fd9daf8

View file

@ -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
end