-
Notifications
You must be signed in to change notification settings - Fork 24
/
staginator.yml
38 lines (38 loc) · 1.83 KB
/
staginator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apt_packages:
- 'libpng-dev'
- 'php-imagick'
- 'imagemagick'
- 'libxml2'
- 'librsvg2-bin'
deploy_callbacks:
deploy_steps:
- 'rm app/config/parameters.ini'
- 'cp app/config/parameters.ini.stag app/config/parameters.ini'
- 'sed -i "s/database_host =.*/database_host = fwdays-php71-mysql/" app/config/parameters.ini'
- 'sed -i "s/database_password =.*/database_password = `mysql_password`/" app/config/parameters.ini'
- "sed -i \"s/database_name =.*/database_name = `echo -n $STAGING_BRANCH|md5sum | awk '{print $1}'`/\" app/config/parameters.ini"
- 'curl -s https://getcomposer.org/installer | php'
- 'mv composer.phar /usr/local/bin/composer'
- 'composer install --prefer-dist --optimize-autoloader --classmap-authoritative'
- 'wget https://files-cdn.liferay.com/mirrors/geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.xz -O geodata/GeoLiteCity.dat.xz'
- 'unxz geodata/GeoLiteCity.dat.xz'
- 'apt-get remove nodejs -y'
- 'cd / && wget https://nodejs.org/dist/v6.11.3/node-v6.11.3-linux-x64.tar.xz'
- 'cd / && tar -xvf node-v6.11.3-linux-x64.tar.xz'
- 'cp -a /node-v6.11.3-linux-x64/* /'
- 'npm install -g gulp'
- 'npm install'
- 'npm run gulp-prod'
after_deploy:
- 'cp -a web/app_stag.php web/app.php'
- './console do:da:dr --force'
- './console do:da:cr -q'
- './console --no-interaction doctrine:migrations:migrate'
- './console --no-interaction do:fi:lo'
- './console --no-interaction assets:install'
- 'cp -a /stag/shared/uploads/ /stag/www/web/'
- 'chown -R www-data:www-data /stag/www/web/uploads/'
- "php bin/console lexik:translations:import"
ci:
commands:
- 'app/run-ci-pack.sh -e=prod'