diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 1dbfa2f25f..75c8f771c3 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -400,6 +400,7 @@ phutil_register_library_map(array( 'PhabricatorSearchQuery' => 'applications/search/storage/query', 'PhabricatorSearchRelationship' => 'applications/search/constants/relationship', 'PhabricatorStandardPageView' => 'view/page/standard', + 'PhabricatorStatusController' => 'applications/status/base', 'PhabricatorTaskmasterDaemon' => 'infrastructure/daemon/workers/taskmaster', 'PhabricatorTimelineCursor' => 'infrastructure/daemon/timeline/storage/cursor', 'PhabricatorTimelineDAO' => 'infrastructure/daemon/timeline/storage/base', @@ -767,6 +768,7 @@ phutil_register_library_map(array( 'PhabricatorSearchMySQLExecutor' => 'PhabricatorSearchExecutor', 'PhabricatorSearchQuery' => 'PhabricatorSearchDAO', 'PhabricatorStandardPageView' => 'AphrontPageView', + 'PhabricatorStatusController' => 'PhabricatorController', 'PhabricatorTaskmasterDaemon' => 'PhabricatorDaemon', 'PhabricatorTimelineCursor' => 'PhabricatorTimelineDAO', 'PhabricatorTimelineDAO' => 'PhabricatorLiskDAO', diff --git a/src/aphront/default/configuration/AphrontDefaultApplicationConfiguration.php b/src/aphront/default/configuration/AphrontDefaultApplicationConfiguration.php index 6264d31a51..c4d008cd02 100644 --- a/src/aphront/default/configuration/AphrontDefaultApplicationConfiguration.php +++ b/src/aphront/default/configuration/AphrontDefaultApplicationConfiguration.php @@ -282,6 +282,8 @@ class AphrontDefaultApplicationConfiguration => 'PhabricatorXHPASTViewStreamController', ), + '/status/$' => 'PhabricatorStatusController', + ); } diff --git a/src/applications/status/base/PhabricatorStatusController.php b/src/applications/status/base/PhabricatorStatusController.php new file mode 100644 index 0000000000..9316d5da16 --- /dev/null +++ b/src/applications/status/base/PhabricatorStatusController.php @@ -0,0 +1,30 @@ +setContent("ALIVE\n"); + return $response; + } +} diff --git a/src/applications/status/base/__init__.php b/src/applications/status/base/__init__.php new file mode 100644 index 0000000000..2b816a2e58 --- /dev/null +++ b/src/applications/status/base/__init__.php @@ -0,0 +1,13 @@ +