groton-school/slim-gae-shim

Shim for Slim Skelton to run on Google App Engine

1.3.1 2025-08-09 00:05 UTC

This package is auto-updated.

Last update: 2025-08-13 01:19:25 UTC


README

Shim for Slim Skeleton to run on Google App Engine

Latest Version

Install

composer require groton-school/slim-gae-shim

Use

The shim expects a default slim-skeleton layout (and configures GAE to reflect this).

  1. In your composer.json add a post-update-cmd update script:
{
  "scripts": {
    "post-update-cmd": "GrotonSchool\\Slim\\GAE\\Scripts::installGAEFiles"
  }
}
  1. Run composer update

  2. Optionally, add *.bak to your .gitignore to suppress backed up prior versions of the GAE config files

  3. Inject Google App Engine environment variables into settings:

    a. Implement SettingsInterface

    b. Define the SettingsInterface dependency

    c. Inject the project URL and ID into your settings

  4. Optionally (but recommendedly), suppress error log messages about Google App Engine start/stop requests by defining routes for those requests

  5. 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.

    b. Install the gcloud CLI

    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.