Add Phabricator example
Summary: Add phabricator example Reviewers: davidopp Reviewed By: davidopp Subscribers: #kubernetes Projects: #kubernetes Differential Revision: http://107.178.210.6/D5
This commit is contained in:
14
examples/phabricator/php-phabricator/run.sh
Executable file
14
examples/phabricator/php-phabricator/run.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "MySQL host IP ${MYSQL_SERVICE_IP} port ${MYSQL_SERVICE_PORT}."
|
||||
/home/www-data/phabricator/bin/config set mysql.host $MYSQL_SERVICE_IP
|
||||
/home/www-data/phabricator/bin/config set mysql.port $MYSQL_SERVICE_PORT
|
||||
/home/www-data/phabricator/bin/config set mysql.pass $MYSQL_PASSWORD
|
||||
|
||||
echo "Running storage upgrade"
|
||||
/home/www-data/phabricator/bin/storage --force upgrade || exit 1
|
||||
|
||||
source /etc/apache2/envvars
|
||||
echo "Starting Apache2"
|
||||
apache2 -D FOREGROUND
|
||||
|
Reference in New Issue
Block a user