球猫注册了一个sinaapp,二叔也学着做,
先看hello world
http://sae.sina.com.cn/doc/python/tutorial.html#hello-world
不过代码要用到svn给的例子用的linux,没办法,上BPI,
svn co https://svn.sinaapp.com/helloworld
说什么没装svn
	
-bash: svn: command not found
那么apt-get install svn
	
说什么没有svn
	
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package svn
没办法,问百度,原来要用
apt-get install subversion
	 
	
	
cd 2s2s
mdkir 1
cd 1
vi config.yaml
name: 2s2s version: 1
vi index.wsgi
import sae
def app(environ, start_response):
    status = '200 OK'
    response_headers = [('Content-type', 'text/plain')]
    start_response(status, response_headers)
    return ['Hello, Uncle Li!']
application = sae.create_wsgi_app(app)
	
下一步就是上载了,学名叫部署
cd ..
svn add 1/
A 1 A 1/index.wsgi A 1/config.yaml
svn ci -m "initialize project"
Adding 1 Adding 1/config.yaml Adding 1/index.wsgi Transmitting file data .. Committed revision 1.
好啦,开始打开浏览器
	 
	
哇靠,出来了,香蕉派素个好东东!

 
					
				
 
			
			
			
						
			 
					
				 我要赚赏金
 我要赚赏金 STM32
STM32 MCU
MCU 通讯及无线技术
通讯及无线技术 物联网技术
物联网技术 电子DIY
电子DIY 板卡试用
板卡试用 基础知识
基础知识 软件与操作系统
软件与操作系统 我爱生活
我爱生活 小e食堂
小e食堂

