-
Notifications
You must be signed in to change notification settings - Fork 34
/
staginator.yml
21 lines (21 loc) · 1.18 KB
/
staginator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
apt_packages: ['sphinxsearch']
deploy_callbacks:
after_clone:
- 'cp -a web/app_stag.php web/app.php'
- 'npm install -g uglify-js'
- 'npm install -g grunt'
- 'npm install -g grunt-cli'
before_composer:
- 'sed -i "s/recaptcha.secret:.*/recaptcha.secret: `echo -n $APP_GOOGLE_CAPTCHA_SECRET_KEY`/" app/config/parameters.yml'
- 'sed -i "s/recaptcha.site_key:.*/recaptcha.site_key: `echo -n $APP_GOOGLE_CAPTCHA_SITE_KEY`/" app/config/parameters.yml'
after_deploy:
- 'cp app/config/sphinx.conf /etc/sphinxsearch/sphinx.conf'
- 'sed -i "s/sql_host =.*/sql_host = portfolio-mysql/" /etc/sphinxsearch/sphinx.conf'
- 'sed -i "s/sql_pass =.*/sql_pass = `mysql_password`/" /etc/sphinxsearch/sphinx.conf'
- "sed -i \"s/sql_db =.*/sql_db = `echo -n $STAGING_BRANCH|md5sum | awk '{print $1}'`/\" /etc/sphinxsearch/sphinx.conf"
- 'sed -i "s/START=no/START=yes/" /etc/default/sphinxsearch'
- './console init:acl'
- 'indexer --all'
- '/etc/init.d/sphinxsearch start'
- 'rm -rf web/uploads/video'
- 'ln -s /stag/shared/video web/uploads/video'