Skip to content

Commit 19c6ccb

Browse files
author
epriestley
committedNov 14, 2016
Allow bin/aphlict to start without a valid database connection
Summary: Ref T11818. See that task for a description. This is like a tiny pinch of hackiness but not really unreasonable. Basically, `aphlict` is already an "uber-server" and one copy can handle a ton of instances. Test Plan: Started `bin/aphlict` without a valid database connection. Reviewers: chad Reviewed By: chad Maniphest Tasks: T11818 Differential Revision: https://secure.phabricator.com/D16854
1 parent 6a62fca commit 19c6ccb

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
 

‎scripts/init/init-aphlict.php

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
require_once dirname(__FILE__).'/lib.php';
4+
5+
init_phabricator_script(
6+
array(
7+
// NOTE: We allow aphlict to start with no database, because it's
8+
// reasonable to isolate the notification server from other hosts.
9+
'config.optional' => true,
10+
));

‎support/aphlict/server/aphlict_launcher.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?php
33

44
$root = dirname(dirname(dirname(dirname(__FILE__))));
5-
require_once $root.'/scripts/__init_script__.php';
5+
require_once $root.'/scripts/init/init-aphlict.php';
66

77
PhabricatorAphlictManagementWorkflow::requireExtensions();
88

0 commit comments

Comments
 (0)
Failed to load comments.