CRUD: [Bug] CSS not loaded when pushed on production
Hi,
All of backpack’s CSS refuses to load when I put APP_ENV=production.
The dashboard looks like this :
I’ve tried all of basset’s commands such as basset:clear, basset:fresh & basset:cachebut none seem to solve my issue.
Here’s the ouptut of php artisan basset:check :
ERROR Error fetching the file.
│ Backpack Basset failed to check it’s working properly. │ │ This may be due to multiple issues. Please ensure: │ 1) APP_URL is correctly set in the .env file. │ 2) Your server is running and accessible at http://macusi.be. │ 3) The public disk is properly configured in config/filesystems.php. │ Optionally, basset provides a disk named “basset”, you can use it instead. │ 4) The storage symlink exists and is valid (by default: public/storage). │ │ For more information and solutions, please visit the Backpack Basset FAQ at: │ https://github.com/laravel-backpack/basset#faq
I have checked everything listed and it looks good to me.
Everything works fine when I go back to APP_ENV=local.
I’ve tried everything listed on #5302 but nothing seems to work either.
Here’s the outout from php artisan backpack:version :
PHP VERSION:
PHP 8.2.5 (cli) (built: Apr 12 2023 16:01:18) (NTS) Copyright © The PHP Group Zend Engine v4.2.5, Copyright © Zend Technologies
LARAVEL VERSION:
10.24.0.0
BACKPACK PACKAGE VERSIONS:
backpack/basset: 1.2.0 backpack/crud: 6.2.2 backpack/generators: v4.0.2 backpack/permissionmanager: 7.0.1 backpack/theme-coreuiv2: 1.2.1 backpack/theme-coreuiv4: 1.1.1 backpack/theme-tabler: 1.1.1
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 23 (11 by maintainers)
I figured out my sollution:
app_urlin.envishttps://...instead ofhttp://...