working on DB setup via Phing
parent
7ef319a6ca
commit
1cfdca6a8f
|
@ -1,7 +1,6 @@
|
|||
# continuous.yml
|
||||
deployment:
|
||||
hooks:
|
||||
AfterInstall:
|
||||
- command: scripts/migrate.sh
|
||||
AfterActivate:
|
||||
- command: scripts/migrate.sh
|
||||
- command: scripts/restart-server.sh
|
|
@ -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
|
Loading…
Reference in New Issue