prawee / yii2-gae-web
Create simple website on Google App Engine with Yii2
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- fightbulc/moment: ^1.26
- google/appengine-php-sdk: ^1.9
- omise/omise-php: ^2.9
- phpmailer/phpmailer: ^6.0
- vlucas/phpdotenv: ^2.4
- yiisoft/yii2: ^2.0
Requires (Dev)
- yiisoft/yii2-gii: ^2.0
This package is auto-updated.
Last update: 2025-01-12 06:41:33 UTC
README
Create simple website for deploy on Google App Engine (Standard Environment) with Yii2
Installalion
$ git clone https://github.com/prawee/yii2-gae-web
$ cd yii2-gae-web
$ composer install
Configuration
Update environment variable for your local
$ cp .env.dist .env
Update environment variable for your GAE
$ 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
$ cp config/main-local.php.dist config/main-local.php
Running
localhost
$ php -S localhost:8080 -t web
localhost with google app engine
$ 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