Add a start script and automatically migrate the db

pull/281/head
Pierre Jaury 2018-06-12 20:56:42 +02:00
rodzic eddeb5e788
commit b412616c28
3 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -31,3 +31,5 @@ RUN install -d -m0755 -o www-data -g www-data \
VOLUME ["/var/www/storage"]
ENV PATH="~/.composer/vendor/bin:./vendor/bin:${PATH}"
CMD /var/www/docker/start.sh

6
docker/start.sh 100755
Wyświetl plik

@ -0,0 +1,6 @@
#!/bin/sh
mkdir -p storage/framework/{cache,sessions,views,logs}
php artisan migrate
exec apache2-foreground