📅  最后修改于: 2022-03-11 14:54:34.890000             🧑  作者: Mango
runtime: php # language of the app
env: flex # let app engine know we use flexible environment
runtime_config:
document_root: public #folder where index.php is
# Ensure we skip ".env", which is only for local development
skip_files:
- .env #we want to skip this to make sure we don’t mess stuff up on the server
- .git
- .github
- .idea
- vendor
env_variables:
# Put production environment variables here.
APP_ENV: local # or production
APP_DEBUG : true # or false
APP_KEY: base64:mNB8elUgxjh3qqYaqgO/Xu5gV4Lqr52HjQqwIdRxYn4=
#go to generate app key paragraf in this tutorial
CACHE_DRIVER: file
# instead of putting the cache in the database I recommend using redis
SESSION_DRIVER: file #or file since both work
APP_LOG: daily
APP_TIMEZONE: UTC #your timezone of choice
QUEUE_DRIVER: database #in case you execute queued jobs
MAIL_DRIVER: smtp
MAIL_HOST: smtp.sparkpostmail.com
MAIL_PORT: 587
MAIL_USERNAME: sparkpost_username
MAIL_PASSWORD:
GOOGLE_VISION_PROJECT_ID : url-shortner-328010
automatic_scaling:
target_cpu_utilization: 0.65
min_instances: 1
max_instances: 1
min_pending_latency: 30ms
max_pending_latency: automatic
max_concurrent_requests: 50