当前位置:首页 > IT技术 > 移动平台 > 正文

Uncaught InvalidArgumentException: Please provide a valid cache path. in /apps/vendor/laravel/framew
2022-05-11 11:08:03


cd 项目路径

mkdir -p ./storage/framework/cache
mkdir -p ./storage/framework/sessions
mkdir -p ./storage/framework/views

Dockerfile

FROM vendor:7.4prod
COPY . /apps/
RUN mkdir -p /apps/storage/framework/laravel-excel && chown www-data:www-data /apps/storage/framework && chown www-data:www-data /apps/storage/framework/laravel-excel && cd /apps && chmod 777 storage

放到RUN 后面


本文摘自 :https://blog.51cto.com/u

开通会员,享受整站包年服务立即开通 >