mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:15 +02:00
fix nginad
This commit is contained in:
parent
dfe84ee6b6
commit
0a46047639
@ -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 \
|
||||||
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user