Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Laravel Deployment to google cloud app engine flexible environment app.yaml file

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
Comment

PREVIOUS NEXT
Code Example
Php :: laravel list unique indexes 
Php :: wp table with hostname setup 
Php :: $_FILES image dimensions 
Php :: how to disable the plugins and theme editor 
Php :: php isset tableau 
Php :: laravel save without dispatching an event 
Php :: <= in php 
Php :: register widget in wordpress 
Php :: use htaccess to redirect in cpanel lsrsvel 
Php :: examples of invalid php variables 
Php :: object initialization 
Php :: onesignal update device api 
Php :: htmlentities (PHP 4, PHP 5, PHP 7, PHP 8) htmlentities — Convert all applicable characters to HTML entities 
Php :: laravel find user by id 
Php :: Display HTML text from a variable in laravel 
Php :: select query with multiple where clause in php 
Php :: What is the method of querying from two tables with a condition in Laravel 
Php :: pivot null in livewire refresh 
Php :: php if condition 
Php :: salom 
Php :: verifier la version de php sur mon ordi 
Php :: laravel store file specifiying name and disk 
Php :: php artisan make:auth is not working in laravel 8 
Php :: remove public from laravel 8 
Php :: PHP vprintf — Output a formatted string 
Php :: wordrpess debugg is off but still showing 
Php :: laravel task scheduler error 
Php :: Dorf SMS Plugin 
Php :: change php platform of composer 
Php :: Laravel array to string error 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =