There is no image front-end,but had back-end
-
My Steps:
cd /workdir
composer create-project bagisto/bagisto mywebtmp
mv all the files in the mywebtmp to /workdir/myweb
cd /workdir/myweb
I only changed the database's info in the .env
php artisan install
I use a local domain to the /workdir/myweb/public, the domain is http://test.bagisto
Finished!
Then, http://test.bagisto can open, http://test.bagisto/admin also can open. but only no image front-end and back-end.so I do next:
cd /workdir/myweb
rm public/storage
php artisan storage:link
Then vim .env APP_URL=http://test.bagisto
Then
php artisan cache:clear
php artisan view:clear
php artisan route:clear
php artisan clear-compiled
php artisan config:cache
composer dump-autoload
php artisan vendor:publish
It is all successed.The when I upload image jpg back-end, and when I edit the produce to see the image, it is there.
http://test.bagisto/storage/product/30/glRwTsK5ITBnJyRa7hyjGL6D2K606Ds4qA1hqnZc.jpg
and
ls /workdir/myweb/public/storage/product/productid/
also can see the jpg , so the back-end is ok.but I cannot find the /workdir/myweb/public/cache , no this dir.
http://test.bagisto/cache/small/product/30/glRwTsK5ITBnJyRa7hyjGL6D2K606Ds4qA1hqnZc.jpg
also it is broken.
how to fix this? thanks. -
Please use single thread,
https://forums.bagisto.com/topic/2523/back-end-is-ok-but-front-end-the-image-is-broken