server command loads the application
This commit is contained in:
parent
ca273d171c
commit
293fd9daf8
|
@ -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 New Issue