Slim Getting Started for LeanEngine
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
src 👽 Rename `Object` to `LeanObject` Jun 20, 2018
.gitignore
README.md ⬆️ Upgrade to leancloud-sdk 0.8 Jun 21, 2018
composer.json
composer.lock ⬆️ Upgrade to PHP 7.2 Jun 28, 2018

README.md

Slim Getting Started

一个基于 Slim 框架 的 PHP 应用,可以运行在 LeanEngine PHP 运行时环境。

本地运行

首先确认本机已经安装 PHP 和 composer 以及 LeanCloud 命令行工具,然后执行下列指令:

$ git clone git@github.com:leancloud/slim-getting-started.git
$ cd slim-getting-started

安装依赖:

composer install

关联应用:

lean switch

启动项目:

lean up

应用即可启动运行:localhost:3000

同时开启的还有云函数的本地调试工具:localhost:3001

部署到 LeanEngine

部署到预备环境(若无预备环境则直接部署到生产环境):

lean deploy

将预备环境的代码发布到生产环境:

lean publish

相关文档