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

hanmichael/python-getting-started

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-getting-started

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

使用命令行工具创建项目

请参考 LeanCloud 命令行工具 文档。

手动创建项目

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

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

准备启动文件:

$ touch start.sh
$ chmod +x start.sh

将 app id 等信息输入到 start.sh 文件中:

export LC_APP_ID=<your app id>
export LC_APP_KEY=<your app key>
export LC_APP_MASTER_KEY=<your master key>

启动项目:

$ ./start.sh

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

部署到 LeanEngine

部署到测试环境:

$ avoscloud deploy

部署到生产环境:

$ avoscloud publish

相关文档

About

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Python 74.2%
  • HTML 24.4%
  • CSS 1.4%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.