working on DB setup via Phing
parent
7ef319a6ca
commit
1cfdca6a8f
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue