dotcloud初步

来源:互联网 发布:安装电视猫软件 编辑:程序博客网 时间:2024/06/11 08:53

https://www.dotcloud.com/

先注册账号


然后下面是在本地setup和check


$ dotcloud setup
dotCloud username or email: andych008
Password:
==> dotCloud authentication is complete! You are recommended to run `dotcloud check` now.


Administrator@www-ab4e2db6d68 ~/stack-python-postgresql
$ dotcloud check
==> Checking the authentication status
==> Client is authenticated as andych008

------------------create  connect   push 一个app-------------------------------



#创建一个应用ramen
$ dotcloud create ramen

#建立代码根目录

$ mkdir ramen-on-dotcloud


#进入代码根目录
$ cd ramen-on-dotcloud/

$ pwd
/home/Administrator/ramen-on-dotcloud


#这里写自己的代码………………好多,好多。其它也不多。



#连接应用ramen,只有连接应用后才能push代码
$ dotcloud connect ramen


#将当前目录的代码上传到ramen下面
$ dotcloud push
最后提示http://ramen-andych008.dotcloud.com可以访问,表示成功!



Cheat sheet

Application environment

dotcloud env list

Get your app url

dotcloud url

Restart your db

dotcloud restart testandy.db

Run commands

dotcloud run testandy.www

Real time logs

dotcloud logs

Open in your browser

dotcloud open testandy


静态页面

http://docs.dotcloud.com/0.9/services/static/



helloworld

http://docs.dotcloud.com/0.4/services/python/




s




s