Changeset View
Changeset View
Standalone View
Standalone View
files/usr/local/bin/setup-phabricator
#!/usr/bin/env bash | #!/usr/bin/env bash | ||||
pushd /opt/phabricator | pushd /opt/phabricator | ||||
# MYSQL | # MYSQL | ||||
bin/config set mysql.host mysql | bin/config set mysql.host mysql | ||||
# mysql.host variable is fixed and should always be set as 'mysql', | |||||
# according to https://devcentral.nasqueron.org/diffusion/DPHAB/ : | |||||
# > a MySQL container linked as 'mysql' (--link <your MySQL container>:mysql), | |||||
# > which could be the official MySQL image or our nasqueron/mysql image, | |||||
# > optimized for Phabricator. | |||||
bin/config set mysql.pass "$MYSQL_ENV_MYSQL_ROOT_PASSWORD" | bin/config set mysql.pass "$MYSQL_ENV_MYSQL_ROOT_PASSWORD" | ||||
if [ -n "$PHABRICATOR_STORAGE_NAMESPACE" ]; then | if [ -n "$PHABRICATOR_STORAGE_NAMESPACE" ]; then | ||||
bin/config set storage.default-namespace "$PHABRICATOR_STORAGE_NAMESPACE" | bin/config set storage.default-namespace "$PHABRICATOR_STORAGE_NAMESPACE" | ||||
fi | fi | ||||
# URLs | # URLs | ||||
bin/config set phabricator.base-uri "$PHABRICATOR_URL" | bin/config set phabricator.base-uri "$PHABRICATOR_URL" | ||||
if [ -n "$PHABRICATOR_ALT_FILE_DOMAIN" ]; then | if [ -n "$PHABRICATOR_ALT_FILE_DOMAIN" ]; then | ||||
Show All 38 Lines |
Nasqueron DevCentral · If it had been much bigger the moon would have had a core of ice. · Powered by Phabricator