Skip to content

Commit

Permalink
copied docker-entrypoint.sh from master
Browse files Browse the repository at this point in the history
  • Loading branch information
qr committed Feb 3, 2021
1 parent c5983fd commit 37dbb71
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ echo "Environment: $APP_ENV"

set -u

echo "10.16.136.56 schuldhulp.sociaal.amsterdam.nl schuldhulp-ft.sociaal.amsterdam.nl" >> /etc/hosts
#echo "10.16.136.56 schuldhulp-ft.sociaal.amsterdam.nl" >> /etc/hosts
#echo "10.205.130.12 schuldhulp-ft.sociaal.amsterdam.nl" >> /etc/hosts # hent change 1
echo "10.204.22.40 schuldhulp-ft.sociaal.amsterdam.nl" >> /etc/hosts # hent change 2
#echo "10.16.130.3 schuldhulp.sociaal.amsterdam.nl" >> /etc/hosts
echo "10.204.22.39 schuldhulp.sociaal.amsterdam.nl" >> /etc/hosts
echo 'Dumping hosts file:'
cat /etc/hosts

Expand All @@ -25,14 +29,13 @@ then
php bin/console cache:warmup --env=acceptance
fi

php bin/console doctrine:migrations:sync-metadata-storage --no-interaction
php bin/console doctrine:migrations:migrate --no-interaction

chown -R www-data:www-data var

rm /etc/nginx/conf.d/default.conf
cp docker/nginx/nginx.conf /etc/nginx/nginx.conf
cp docker/nginx/vhost.conf /etc/nginx/conf.d/vhost.conf
cp docker/nginx/vhost-$APP_ENV.conf /etc/nginx/conf.d/vhost.conf

cp docker/nginx/localhost.crt /srv/localhost.crt
cp docker/nginx/localhost.key /srv/localhost.key
Expand All @@ -54,4 +57,4 @@ tail -f /srv/app/var/log/acceptance.log &
tail -f /srv/app/var/log/production.log &

nginx
php-fpm -F
php-fpm -F

0 comments on commit 37dbb71

Please sign in to comment.