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:
parent
ca273d171c
commit
293fd9daf8
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue