laravel deployment to google cloud app engine flexible environment app yaml file

Solutions on MaxInterview for laravel deployment to google cloud app engine flexible environment app yaml file by the best coders in the world

showing results for - "laravel deployment to google cloud app engine flexible environment app yaml file"
Yannik
18 Jan 2019
1runtime: php  # language of the app
2env: flex     # let app engine know we use flexible environment
3runtime_config:
4 document_root: public   #folder where index.php is
5# Ensure we skip ".env", which is only for local development
6skip_files:
7 - .env #we want to skip this to make sure we don’t mess stuff up on the server
8 - .git
9 - .github
10 - .idea
11 - vendor
12env_variables:
13 # Put production environment variables here.
14 APP_ENV: local   # or production
15 APP_DEBUG : true # or false
16 APP_KEY: base64:mNB8elUgxjh3qqYaqgO/Xu5gV4Lqr52HjQqwIdRxYn4=
17#go to generate app key paragraf in this tutorial
18 CACHE_DRIVER: file
19# instead of putting the cache in the database I recommend using redis
20 SESSION_DRIVER: file #or file since both work
21 APP_LOG: daily
22 APP_TIMEZONE: UTC #your timezone of choice
23 QUEUE_DRIVER: database #in case you execute queued jobs
24 MAIL_DRIVER: smtp
25 MAIL_HOST: smtp.sparkpostmail.com
26 MAIL_PORT: 587
27 MAIL_USERNAME: sparkpost_username
28 MAIL_PASSWORD:
29 GOOGLE_VISION_PROJECT_ID : url-shortner-328010
30automatic_scaling:
31  target_cpu_utilization: 0.65
32  min_instances: 1
33  max_instances: 1
34  min_pending_latency: 30ms
35  max_pending_latency: automatic
36  max_concurrent_requests: 50