-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove backpack:publish-assets command from v6 #5246
Comments
Hello @fronbow Backpack does not publish any assets anymore. All the assets we use are from CDN, and then internalized using the Did you see this command mentioned in v6 docs somewhere ? Can you point me where you found it so I can remove it ? What are you trying to achieve by publishing Backpack files ? Going to close as there is no bug here AFAIK. Please feel free to continue the conversation, and we can re-open if needed. Cheers |
Cheers @pxpm , the command was in my composer.json, and it's also still a command in the repo so probably just needs removing from the artisan console commands or rather than doing anything, just echo a message to the developer. Cheers |
Thanks for the feedback @fronbow I will open an issue for it and remove it from our core 🙏 |
PR Submitted #5248 |
PR's merged to remove mentions from docs and from code. Thanks again @fronbow we will tag a new version shortly with a few more changes . Cheers |
I came across the same error message when moving my project from development to production. I actually can't even see the login page from backpack. It is as if backpack was not installed at all. I tried:
And then I got the message. I'd like to know how I can make backpack to work in production. Thanks |
Hey @AlonMoshe , hey there. Can you please open a new issue for your problem, and give us some details about your environment ? In Backpack v6 you don't need to publish any files, as there are no files to publish. Everything is loaded from CDN, you can internalize those assets on your application by doing Cheers |
Hey @pxpm , Thanks for your response. Here I show you the outputs of the commands you requested: php artisan backpack:version PHP VERSION:8.3.6 PHP EXTENSIONS:Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, readline, Reflection, SPL, session, standard, sockets, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, exif, mysqlnd, PDO, Phar, SimpleXML, sodium, sqlite3, tokenizer, xml, xmlwriter, xsl, mcrypt, mysqli, pdo_mysql, pdo_sqlite, xmlreader, zip, Zend OPcache LARAVEL VERSION:11.3.1.0 BACKPACK PACKAGE VERSIONS:backpack/basset: 1.3.1 php artisan basset:cache Looking for bassets under the following directories:
Found 55 bassets in 210 blade files. Caching: php artisan basset:check INFO Checking Backpack Basset installation. Initializing basset check ................................................................................................................... DONE The "relevant" things in the .env file are these: .env APP_NAME=teacherbook APP_LOCALE=en APP_MAINTENANCE_DRIVER=file BCRYPT_ROUNDS=12 LOG_CHANNEL=stack DB_CONNECTION=mysql SESSION_DRIVER=database BROADCAST_CONNECTION=log CACHE_STORE=database MEMCACHED_HOST=127.0.0.1 REDIS_CLIENT=phpredis MAIL_MAILER=log AWS_ACCESS_KEY_ID= VITE_APP_NAME="${APP_NAME}" BASSET_DEV_MODE=false When I browse to the app_url I see the Laravel screen, but when I try app_url/admin, I get file not found from the server Once again, many thanks for the help |
Bug report
What I did
Type
php artisan backpack:publish-assets
What I expected to happen
Any updated assets to be published
What happened
Is it a bug in the latest version of Backpack?
Yes
After I run
composer update backpack/crud
the bug... is it still there?Yes
Backpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is:PHP VERSION:
PHP 8.1.12-1ubuntu4.2 (cli) (built: Jun 28 2023 13:56:12) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.12, Copyright (c) Zend Technologies
with Zend OPcache v8.1.12-1ubuntu4.2, Copyright (c), by Zend Technologies
with Xdebug v3.2.0, Copyright (c) 2002-2022, by Derick Rethans
LARAVEL VERSION:
10.16.1.0
BACKPACK PACKAGE VERSIONS:
backpack/basset: 1.0.2
backpack/crud: 6.1.1
backpack/generators: v4.0.2
backpack/logmanager: v5.0.0
backpack/permissionmanager: 7.0.0
backpack/pro: 2.0.9
backpack/theme-coreuiv4: 1.0.5
backpack/theme-tabler: 1.0.6
The text was updated successfully, but these errors were encountered: