working on DB setup via Phing

pull/1/head
ppaulis 2016-11-02 20:00:16 +01:00
parent 7ef319a6ca
commit 1cfdca6a8f
2 changed files with 3 additions and 7 deletions

View File

@ -1,7 +1,6 @@
# continuous.yml
deployment:
hooks:
AfterInstall:
- command: scripts/migrate.sh
AfterActivate:
- command: scripts/migrate.sh
- command: scripts/restart-server.sh

View File

@ -1,13 +1,10 @@
#!/bin/bash
BUILD=$1
cd /var/www/continuousphp/$BUILD
cd /var/www/continuousphp/current
while [ ! -f /var/lib/continuousphp/credentials.ini ]
do
sleep 2
done
chown -R www-data:www-data /var/www/continuousphp/$BUILD/*
chown -R www-data:www-data /var/www/continuousphp/current/*
bin/phing -propertyfile /var/lib/continuousphp/credentials.ini init