Hello everyone, I am a beginner :) :) :)
- Barbarossa
- Member | 74
@on5 I have few tips how to make Nette works on App Engine:
- Use the GCP Console to create a Google Cloud Platform project, choose a region where you want your application's resources to be located, and enable billing
- Go to cloud
shell and set your project like
this:
gcloud config set project [YOUR_PROJECT_ID]
- optional – navihate to root of php72 directory
like:
samples/appengine/php72/
- run this command
composer create-project nette/web-project
(or make sure if composer is installed and set globally) - go to project directory
cd web-project
and create app.yamlnano app.yaml
with following
runtime: php72
entrypoint: serve www/index.php
- for temp a log directory you have to change drive to cloud storage or just like this
// app/bootstrap.php
$configurator->enableTracy(sys_get_temp_dir());
$configurator->setTempDirectory(sys_get_temp_dir());
gcloud app deploy
and also you can browsegcloud app browse
Last edited by Barbarossa (2018-10-10 13:32)