mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Add a start script and automatically migrate the db
This commit is contained in:
parent
eddeb5e788
commit
b412616c28
3 changed files with 8 additions and 0 deletions
|
@ -31,3 +31,5 @@ RUN install -d -m0755 -o www-data -g www-data \
|
||||||
VOLUME ["/var/www/storage"]
|
VOLUME ["/var/www/storage"]
|
||||||
|
|
||||||
ENV PATH="~/.composer/vendor/bin:./vendor/bin:${PATH}"
|
ENV PATH="~/.composer/vendor/bin:./vendor/bin:${PATH}"
|
||||||
|
|
||||||
|
CMD /var/www/docker/start.sh
|
6
docker/start.sh
Executable file
6
docker/start.sh
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
mkdir -p storage/framework/{cache,sessions,views,logs}
|
||||||
|
php artisan migrate
|
||||||
|
|
||||||
|
exec apache2-foreground
|
Loading…
Reference in a new issue