Errors while deploying using vapor
-
Hello I've deployed the application using vapor and I'm getting the following error. Can someone say what's missing?
file_put_contents(/tmp/storage/app/db-blade-compiler/views/3ad3cf66a3856b81120bd1be29475b50): failed to open stream: No such file or directory (View: /var/task/packages/Webkul/Shop/src/Resources/views/home/index.blade.php)
My vapor .yml:
staging:
memory: 1024
cli-memory: 512
runtime: php-7.4
database: test-dev
database-user: testuser
storage: testinglaravel-bagisto-staging
build:
- 'composer install'
- 'php artisan event:cache'
deploy:
- 'php artisan migrate --force'
- 'php artisan db:seed' -
Please run the following command:
composer dump-autoload php artisan vendor:publish --force
-
@Vaishali-Agarwal said in Errors while deploying using vapor:
php artisan vendor:publish --force
I got the following error
In Local.php line 199:file_put_contents(/var/task/resources/views/errors/401.blade.php): failed t
o open stream: Read-only file system -
hi @svalalmsetti
run these commands
php artisan cache:clear
sudo chmod -R 777 vendor storage -
@Vaishali-Agarwal said in Errors while deploying using vapor:
sudo chmod -R 777 vendor storage
I got the following error when I ran php artisan cache:clear
In DynamoDbStore.php line 451:DynamoDb does not support flushing an entire table. Please create a new tab
le. -
Please run following commands -
sudo chown -R $USER:www-data storage
then
chmod -R 775 storage