1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00

fix nginad

This commit is contained in:
kev 2015-09-21 12:27:21 +08:00
parent dfe84ee6b6
commit 0a46047639
2 changed files with 4 additions and 1 deletions

View File

@ -11,6 +11,8 @@ RUN apk add -U ca-certificates \
git \ git \
gzip \ gzip \
nginx \ nginx \
php-apcu \
php-curl \
php-fpm \ php-fpm \
php-json \ php-json \
php-openssl \ php-openssl \
@ -24,7 +26,7 @@ RUN apk add -U ca-certificates \
&& cd upload \ && cd upload \
&& php composer.phar self-update \ && php composer.phar self-update \
&& php composer.phar install \ && php composer.phar install \
&& chown -R nobody:nobody public \ && chown -R nobody:nobody . \
&& cd config/autoload \ && cd config/autoload \
&& cp database.local.php.dist database.local.php \ && cp database.local.php.dist database.local.php \
&& cp delivery.local.php.dist delivery.local.php \ && cp delivery.local.php.dist delivery.local.php \

View File

@ -29,6 +29,7 @@ $ fig up -d
$ wget https://nginad.atlassian.net/wiki/download/attachments/1114149/nginad-1.6.sql $ wget https://nginad.atlassian.net/wiki/download/attachments/1114149/nginad-1.6.sql
$ docker exec -i nginad_mysql_1 mysql -u root -proot nginad < nginad-1.6.sql $ docker exec -i nginad_mysql_1 mysql -u root -proot nginad < nginad-1.6.sql
$ docker exec nginad_nginad_1 sed -i "/adserver_domain/s/'.*'/'nginad.foobar.site'/" upload/public/ad/nginad.js $ docker exec nginad_nginad_1 sed -i "/adserver_domain/s/'.*'/'nginad.foobar.site'/" upload/public/ad/nginad.js
$ docker exec nginad_nginad_1 sed -i "s/server.nginad.com/nginad.foobar.site/" upload/config/autoload/delivery.local.php
$ fig restart nginad $ fig restart nginad
``` ```