2017 © Pedro Peláez
 

project yii2-gae-web

Create simple website on Google App Engine with Yii2

image

prawee/yii2-gae-web

Create simple website on Google App Engine with Yii2

  • Friday, March 9, 2018
  • by prawee
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

yii2-gae-web

Create simple website for deploy on Google App Engine (Standard Environment) with Yii2, (*1)

Installalion

$ git clone https://github.com/prawee/yii2-gae-web
$ cd yii2-gae-web
$ composer install

Configuration

Update environment variable for your local, (*2)

$ cp .env.dist .env

Update environment variable for your GAE, (*3)

$ cp app.yaml.dist app.yaml
$ cp uat.yaml.dist uat.yaml
# update configure on your local
$ cp cron.yaml.dist cron.yaml

Update configure on your local, (*4)

$ cp config/main-local.php.dist config/main-local.php

Running

localhost, (*5)

$ php -S localhost:8080 -t web

localhost with google app engine, (*6)

$ dev_appserver.py app.yaml

How to deploy

# prod
$ gcloud app deploy
# uat
$ gcloud app deploy uat.yaml

Look

# local
GET localhost:8080
GET localhost:8080/site/login
GET localhost:8080/site/logout
# gae
GET https://<project-id>.appspot.com/site
GET https://<project-id>.appspot.com/site/login
GET https://<project-id>.appspot.com/site/logout

The Versions

09/03 2018