Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tip: Getting this to work on Google cloud engine #133

Open
bmellink opened this issue Jan 11, 2022 · 1 comment
Open

Tip: Getting this to work on Google cloud engine #133

bmellink opened this issue Jan 11, 2022 · 1 comment

Comments

@bmellink
Copy link

Prerequisites

  • [ x] Able to reproduce the behaviour outside of your code, the problem is isolated to Laravel Excel.
  • [ x] Checked that your issue isn't already filed.
  • [ x] Checked if no PR was submitted that fixes this problem.

Versions

  • PHP version: 7.4
  • Laravel version: 8
  • Nova version: 3.27
  • Package version: 1.2

Description

Server error 500 when downloading Excel file because the folder /storage/framework/cache/laravel-excel can not be created at run time by Google App Engine.

Steps to Reproduce

Vanilla install

Tip to solve - recommend adding this to the readme or manual:

  • the GAE deploy uses the .gitignore files to determine which directories should be created on the Google App Engine platform
  • Ensure the folder exists locally (which will be the case in most cases as you probably did run some tests)
  • create a dummy file dummy.txt in /storage/framework/cache/laravel-excel
  • modify the .gitignore file on /storage/framework/cache/.gitignore and add these 2 lines:
!laravel-excel
!laravel-excel/dummy.txt
  • The total .gitignore file should read something like:
*
!data/
!.gitignore
!laravel-excel
!laravel-excel/dummy.txt

Expected behavior:

Actual behavior:

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

@patrickbrouwers
Copy link
Member

If there should be changes to the documentation, please PR it to the docs repo: https://github.com/SpartnerNL/laravel-excel-docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants