Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

kexuebiao/python-getting-started

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask-getting-started

一个简单的使用 Flask 的 Python 应用。 可以运行在 LeanEngine Python 运行时环境。

本地运行

首先确认本机已经安装 Python 运行环境。然后执行下列指令:

一键部署

Deploy to LeanEngine

本地运行

首先确认本机已经安装 Python 运行环境和 LeanCloud 命令行工具,然后执行下列指令:

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

安装依赖:

pip install -r requirements.txt

关联应用:

lean app add origin <appId>

这里的 appId 填上你在 LeanCloud 上创建的某一应用的 appId 即可。origin 则有点像 Git 里的 remote 名称。

启动项目:

lean up

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

部署到 LeanEngine

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

lean deploy

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

lean publish

相关文档

About

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Python 77.0%
  • HTML 21.7%
  • CSS 1.3%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.