I can change permission storage folder laravel correctly .

168 views
Skip to first unread message

Phal Pisey

unread,
Dec 4, 2019, 8:20:51 AM12/4/19
to Google App Engine

After I install laravel on App Engine. 


Screen Shot 2019-12-04 at 4.56.30 PM.png






## app.yaml

runtime: php72

runtime_config:
document_root: public #folder where index.php is

env_variables:
APP_KEY: my_key
APP_DEBUG : true # true or false
APP_LOG: errorlog
APP_STORAGE: /tmp
VIEW_COMPILED_PATH: /tmp
SESSION_DRIVER: cookie
CACHE_DRIVER: database
# Put production environment variables here.
APP_ENV: production # local or production
APP_URL: https://myapp.appspot.com
#go to generate app key paragraf in this tutorial
# instead of putting the cache in the database I recommend using redis
APP_TIMEZONE: UTC #your timezone of choice
# follow the part of the tutorial on setting up your SQL database
DB_CONNECTION: mysql
DB_HOST: localhost
DB_DATABASE: mydm
DB_USERNAME: myuser
DB_PASSWORD: mypass
DB_SOCKET: my
QUEUE_DRIVER: database #in case you execute queued jobs

#we need this for the flex environment
beta_settings:
# for Cloud SQL, set this value to the Cloud SQL connection name,
# e.g. "project:region:cloudsql-instance"
cloud_sql_instances: my




## composer.json


{
"name": "joselfonseca/laravel-api",
"description": "Laravel API starter Kit will give you most of the boilerplate that you need for creating Laravel API's",
"keywords": ["framework", "laravel", "Api", "REST", "oAuth2", "Dingo API"],
"license": "MIT",
"type": "project",
"authors": [
{
"name": "Jose Fonseca",
"email": "jo...@ditecnologia.com",
"homepage": "https://josefonseca.me",
"role": "Developer"
}
],
"require": {
"php": ">=7.0.0",
"barryvdh/laravel-cors": "^0.11.0",
"fideloper/proxy": "~3.3",
"james-heinrich/getid3": "^1.9",
"laravel/framework": "5.5.*",
"laravel/scout": "^3.0",
"laravel/tinker": "~1.0",
"laravelcollective/html": "^5.4.0",
"league/flysystem-aws-s3-v3": "~1.0",
"league/flysystem-rackspace": "~1.0",
"predis/predis": "^1.1",
"superbalist/laravel-google-cloud-storage": "^2.2"
},
"require-dev": {
"filp/whoops": "~2.0",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~6.0"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
},
"files": [
"app/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
],
"post-install-cmd": [
"chmod -R 777 bootstrap\/cache",
"chmod -R 777 storage",
"chmod -R gu+w storage",
"chmod -R guo+w storage",
"php artisan cache:clear"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"@php artisan optimize"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
}
}


Elliott (Cloud Platform Support)

unread,
Dec 4, 2019, 5:49:25 PM12/4/19
to Google App Engine

Hello Phal,


Please note that Google Groups are reserved for general Google Cloud Platform and product discussions and not for reporting issues, which is why I suggest moving the troubleshooting to Issue Tracker, where issues can be turned private in case we need to gather any project specific details.


Reply all
Reply to author
Forward
0 new messages