Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prawee/yii2-gae-web
Create RESTful for deploy on Google App Engine with Yii2
https://github.com/prawee/yii2-gae-web
google-appengine php website yii2 yiiframework
Last synced: about 11 hours ago
JSON representation
Create RESTful for deploy on Google App Engine with Yii2
- Host: GitHub
- URL: https://github.com/prawee/yii2-gae-web
- Owner: prawee
- Created: 2018-02-18T19:12:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-09T04:19:13.000Z (over 6 years ago)
- Last Synced: 2024-04-20T04:22:59.965Z (7 months ago)
- Topics: google-appengine, php, website, yii2, yiiframework
- Language: PHP
- Homepage: http://www.prawee.com
- Size: 76.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# yii2-gae-web
Create simple website for deploy on Google App Engine (Standard Environment) with Yii2### Installalion
```bash
$ git clone https://github.com/prawee/yii2-gae-web
$ cd yii2-gae-web
$ composer install
```### Configuration
Update environment variable for your local
```bash
$ cp .env.dist .env
```Update environment variable for your GAE
```bash
$ 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
```bash
$ cp config/main-local.php.dist config/main-local.php
```### Running
localhost
```bash
$ php -S localhost:8080 -t web
```localhost with google app engine
```bash
$ dev_appserver.py app.yaml
```### How to deploy
```bash
# prod
$ gcloud app deploy
# uat
$ gcloud app deploy uat.yaml
```### Look
```bash
# local
GET localhost:8080
GET localhost:8080/site/login
GET localhost:8080/site/logout
``````bash
# gae
GET https://.appspot.com/site
GET https://.appspot.com/site/login
GET https://.appspot.com/site/logout
```