• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

Errors while deploying using vapor

General Discussion
3
6
903
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 18 Mar 2020, 19:02

    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 19 Mar 2020, 05:03

      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 23 Mar 2020, 15:29

        @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 25 Mar 2020, 08:06

          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 27 Mar 2020, 15:34

            @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 30 Mar 2020, 10:29

              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
              5 out of 6
              • First post
                5/6
                Last post