Page MenuHomeDevCentral

D44.id147.diff
No OneTemporary

D44.id147.diff

diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -96,6 +96,7 @@
------------------------------|---------------------------------|------------
PHABRICATOR_ALT_FILE_DOMAIN | security.alternate-file-domain | If set, static files are served through another domain.
PHABRICATOR_DOMAIN | / | Domain of your instance, matching PHABRICATOR_URL, will be used in the future in our Docker maintenance Phabricator application.
+PHABRICATOR_NO_INSTALL | / | If set, the installation and configuration step will be skipped. Recommended if you deploy your own code to bypass the `bin/storage upgrade` step.
PHABRICATOR_STORAGE_NAMESPACE | storage.default-namespace | If set, MySQL databases won't start by phabricator_ but by your namespace, followed by an _.
PHABRICATOR_TITLE | / | Title of your instance, will be used in the future in our Docker maintenance Phabricator application.
PHABRICATOR_URL | phabricator.base-uri | If set, Phabricator will use it as canonical URL, and will serve Phabricator application to requests for this URL. Mandatory if you use static files separation or Phame.
diff --git a/files/usr/local/bin/setup-phabricator b/files/usr/local/bin/setup-phabricator
--- a/files/usr/local/bin/setup-phabricator
+++ b/files/usr/local/bin/setup-phabricator
@@ -20,9 +20,17 @@
bin/config set mailgun.domain $PHABRICATOR_DOMAIN
fi
+# Installation
+if [ -z "$PHABRICATOR_NO_INSTALL" ]; then
+ bin/storage upgrade --force
+ bin/config set storage.mysql-engine.max-size 8388608
+ bin/config set pygments.enabled true
+fi
+
# Rights
chown -R app /var/repo
# We're done
popd
+sv restart phd
touch .initialized

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 04:25 (18 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2308541
Default Alt Text
D44.id147.diff (1 KB)

Event Timeline