Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Errors while deploying using vapor

    General Discussion
    3
    6
    895
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      svalalmsetti last edited by

      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'

      1 Reply Last reply Reply Quote 0
      • V
        Vaishali Agarwal last edited by

        Hi @svalalmsetti

        Please run the following command:

        composer dump-autoload
        php artisan vendor:publish --force
        
        1 Reply Last reply Reply Quote 0
        • S
          svalalmsetti last edited by

          @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

          1 Reply Last reply Reply Quote 0
          • V
            Vaishali Agarwal last edited by

            hi @svalalmsetti
            run these commands
            php artisan cache:clear
            sudo chmod -R 777 vendor storage

            1 Reply Last reply Reply Quote 0
            • S
              svalalmsetti last edited by

              @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.

              1 Reply Last reply Reply Quote 0
              • R
                rahul last edited by

                Hi @svalalmsetti

                Please run following commands -

                sudo chown -R $USER:www-data storage
                

                then

                chmod -R 775 storage
                
                1 Reply Last reply Reply Quote 0
                • First post
                  Last post