Mercurial > hg > soundsoftware-site
diff deploy/provision.d/100-apache-config.sh @ 1606:16325d2ab2dd deploy
Install static site conf file too
author | Chris Cannam |
---|---|
date | Fri, 25 Aug 2017 15:20:53 +0100 |
parents | 18643ab36008 |
children | b8e5e9734526 |
line wrap: on
line diff
--- a/deploy/provision.d/100-apache-config.sh Thu Aug 24 15:56:50 2017 +0100 +++ b/deploy/provision.d/100-apache-config.sh Fri Aug 25 15:20:53 2017 +0100 @@ -8,6 +8,7 @@ codeconf=/var/www/code/deploy/config/code.conf.gen codeconfssl=/var/www/code/deploy/config/code-ssl.conf.gen +staticconf=/var/www/code/deploy/config/soundsoftware-static.conf if [ ! -f "$codeconf" ]; then echo "ERROR: Apache config file $codeconf not found - has the database secret been interpolated from its input file correctly?" @@ -32,6 +33,7 @@ cp "$codeconf" /etc/apache2/sites-available/code.conf cp "$codeconfssl" /etc/apache2/sites-available/code-ssl.conf + cp "$staticconf" /etc/apache2/sites-available/soundsoftware-static.conf ln -s ../sites-available/code.conf /etc/apache2/sites-enabled/10-code.conf apache2ctl configtest