groton-school/slim-gae-shim 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

groton-school/slim-gae-shim

最新稳定版本:2.1.2

Composer 安装命令:

composer require groton-school/slim-gae-shim

包简介

Shim for Slim Skelton to run on Google App Engine

README 文档

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. Add /node_modules/ to your .gitignore

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

  4. Inject Google App Engine environment variables into settings:

    a. Implement SettingsInterface

    b. Define the SettingsInterface dependency

    c. Inject the remaining dependencies

    d. Inject the project URL and ID into your settings

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

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

统计信息

  • 总下载量: 556
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2025-03-29