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

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


cd 項(xiàng)目路徑

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

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