0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

google appengine standard environment 2nd generation for php7 でデプロイする

Last updated at Posted at 2018-09-07

Google AppEngine standard environment 2nd generation for PHP7.2 を使ってみよう。

とりあえずデプロイして動くことを確認する。
Cloud SDK (gcloud command)インストール して gcloud init しておく。

アプリのファイル構造

  • /
  • app.yaml
  • index.php

ファイルの内容

app.yaml
runtime: php72
index.php
<?php
  
phpinfo();

deploy

app.yaml のあるディレクトリで実行する

console
$ gcloud --project="project-name" app deploy

~~ 省略 ~~

You can stream logs from the command line by running:
  $ gcloud app logs tail -s default

To view your application in the web browser run:
  $ gcloud app browse

動作確認

ブラウザで開く

consle
$ gcloud app browse
php72.png

最後に

動いてますね。

エントリポイントの作り方がわかったので、これで一応PHPでできることは何でもできる状態になりました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?