Reputation: 2352
I am deploying my Laravel app on Google Cloud App Engine.
Everything is working fine.
Howerver, I noticed that base_path()
returns /app
. I thought base_path()
returns the root folder of the app.
Does App Engine wrap the application within a app
folder somehow?
Thanks
Upvotes: 0
Views: 145
Reputation: 15
It is because you dont specify a APP_STORAGE
environment variable , it then defaults to /app dir.
From laravel docs Laravel installation guide
Follow the boilerplate and see if it helps you at GCP - Laravel GAE Standard
TLDR; reference app.yaml file
runtime: php72
env_variables:
APP_KEY: YOUR_APP_KEY
APP_STORAGE: /tmp
VIEW_COMPILED_PATH: /tmp
SESSION_DRIVER: cookie
Upvotes: 1