Continue on bad database configuration from select scripts

Summary: Ref T11589. Provide a way for scripts to say "just continue if database config fails", and use it in `bin/config` and `bin/storage`.

Test Plan:
  - Broke database config.
  - Ran `bin/config`, worked fine.
  - Ran `bin/storage`, got helpful "set up the database" message.
  - Ran `bin/repository`, got fatal.
  - Ran normal site with valid/invalid config, got proper feedback.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11589

Differential Revision: https://secure.phabricator.com/D16502
This commit is contained in:
epriestley
2016-09-06 13:20:31 -07:00
parent 00bb0c9071
commit 0e8ceeb690
7 changed files with 62 additions and 30 deletions

View File

@@ -0,0 +1,10 @@
<?php
// Initialize a standard script.
require_once dirname(__FILE__).'/lib.php';
init_phabricator_script(
array(
'config.optional' => false,
));