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 # continuous.yml
deployment: deployment:
hooks: hooks:
AfterInstall:
- command: scripts/migrate.sh
AfterActivate: AfterActivate:
- command: scripts/migrate.sh
- command: scripts/restart-server.sh - command: scripts/restart-server.sh

View File

@ -1,13 +1,10 @@
#!/bin/bash #!/bin/bash
cd /var/www/continuousphp/current
BUILD=$1
cd /var/www/continuousphp/$BUILD
while [ ! -f /var/lib/continuousphp/credentials.ini ] while [ ! -f /var/lib/continuousphp/credentials.ini ]
do do
sleep 2 sleep 2
done 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 bin/phing -propertyfile /var/lib/continuousphp/credentials.ini init