groton-school / slim-gae-shim
Shim for Slim Skelton to run on Google App Engine
Requires
- composer/composer: ^2.8
- google/cloud-logging: ^1.32
- groton-school/slim-norms: ^1.0
- php-di/php-di: >=6.0
- psr/container: >=1.0
- psr/http-message: ^2.0
- psr/log: ^3.0
- slim/slim: ^4.14
- symfony/filesystem: ^7.3
Requires (Dev)
README
Shim for Slim Skeleton to run on Google App Engine
Install
composer require groton-school/slim-gae-shim
Use
The shim expects a default slim-skeleton layout (and configures GAE to reflect this).
- In your
composer.json
add apost-update-cmd
update script:
{ "scripts": { "post-update-cmd": "GrotonSchool\\Slim\\GAE\\Scripts::installGAEFiles" } }
-
Run
composer update
-
Optionally, add
*.bak
to your.gitignore
to suppress backed up prior versions of the GAE config files -
Inject Google App Engine environment variables into settings:
a. Implement
SettingsInterface
-
Optionally (but recommendedly), suppress error log messages about Google App Engine start/stop requests by defining routes for those requests
-
Deploy to Google App Engine using the Node
deploy
wizard provided.a. Configure a Billing Account with your Google Cloud account, if not already done.
c. Install Node dependencies with the package manager of your choice (e.g.
pnpm install
)d. Run the deploy wizard (
pnpm run deploy
) interactively (after the first run, this will set environment variables to allow it to be run non-interactively in the future)
groton-school/slim-skeleton@dev-gae/app
groton-school/slim-skeleton is the canonical example of how this shim is meant to be used.