Alter bootstrap/autoload.php to symlink

ppm (laravel) is looking to bootstrap/autoload.php but BookStack is calling it bootstrap/init.php so a symbolic link is created as a workaround.
This commit is contained in:
TBK 2019-07-31 16:12:48 +02:00
parent 557405814d
commit e5d55c9fe8
No known key found for this signature in database
GPG Key ID: 5FFB25718720C7D7
2 changed files with 4 additions and 4 deletions

View File

@ -67,13 +67,13 @@ RUN set -ex \
&& curl -LJO https://github.com/BookStackApp/BookStack/archive/v${BOOKSTACK_VERSION}.tar.gz \
&& tar --strip-components=1 -xzf BookStack-${BOOKSTACK_VERSION}.tar.gz \
&& rm -rf ${BOOKSTACK}-${BOOKSTACK_VERSION}.tar.gz .env.example .gitattributes .github .gitignore .travis.yml tests/ public/index.php \
&& curl https://raw.githubusercontent.com/BookStackApp/BookStack/873b1099f81f6a9d2619644aef0587e2b73d918a/bootstrap/autoload.php -o bootstrap/autoload.php \
&& ln -s init.php bootstrap/autoload.php \
&& echo "Get Dependencies:" \
&& composer install \
&& echo "Changing ownership:" \
&& chown -R www-data:www-data . \
&& chown www-data:www-data -R . \
&& echo "Ensure Nginx got access to tmp folder:" \
&& chown www-data:root -R /var/lib/nginx/tmp
&& chown www-data:www-data -R /var/lib/nginx/tmp
WORKDIR $BOOKSTACK_HOME

View File

@ -25,7 +25,7 @@ services:
- backend
app:
image: jjtc/bookstack-ppm:0.26.3-r0
image: jjtc/bookstack-ppm:0.26.3-r3
build: ./app/
restart: unless-stopped
depends_on: