freescout-help-desk / freescout

FreeScout — Free self-hosted help desk & shared mailbox (Zendesk / Help Scout alternative)
https://freescout.net
GNU Affero General Public License v3.0
2.98k stars 489 forks source link

vars.js file created in the wrong directory #3961

Closed Sgroove closed 6 months ago

Sgroove commented 6 months ago

There seem to a path configuration issue that causes the vars.js file to be created in the wrong folder. When I run php artisan freescout:clear-cache I get the following output:

The compiled services & packages files have been removed. Cache cleared successfully. Compiled views cleared! Configuration cache cleared! Configuration cached successfully! Created: storage/app/public/js/vars.js

As you can see, the file vars.js is created in the storage/app/public/js/ folder instead of /public/storage/js/ This causes the following error when running the app:

production.ERROR: Error: File '/var/www/html/freescout/public/storage/js/vars.js' does not exist; File: /var/www/html/freescout/overrides/devfactory/minify/src/Providers/BaseProvider.php (124)

PHP version: 8.3 FreeScout version: 1.8.133 Database: MySQL Are you using CloudFlare: No

Sgroove commented 6 months ago

Solved.

Had to simply delete the public/storage folder and run: php artisan storage:link

freescout-helpdesk commented 6 months ago

Ok