a year ago
I have a laravel project, I'm trying to upload it. I want to place a volume and run storage:link. How can I do it?
1 Replies
a year ago
What’s your start command?
a year ago
Maybe try this? https://stackoverflow.com/a/58936108
a year ago
What’s your /config/filesystems.php
look like?
a year ago
Looks like maybe the link could’ve been successful, odd that the path would appear like that though. Wanna try it to see if the files persist?
a year ago
I tried a Laravel deployment and got the same path but it said the link already existed when I tried another deploy.
And I would like to persist the storage data, on a volume or something like that
a year ago
Sorry, I don’t really know. I could look more into it when I get time if you want.
5 months ago
create "build-app.sh" file. with "php artisan storage:link" code. Write comand "chmod +x ./build-app.sh && sh ./build-app.sh" in Settings->Build. Then redeploy.
In your API variables add this NIXPACKSBUILDCMD="composer install && npm install --production && php artisan optimize && php artisan config:clear && php artisan config:cache && php artisan route:clear && php artisan route:cache && php artisan view:cache && php artisan storage:link"