當(dāng)前位置:首頁 > IT技術(shù) > 移動平臺 > 正文

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

開通會員,享受整站包年服務(wù)立即開通 >