monupco.com用于dotcloud/python应用程序的注册代理
monupco-dotcloud-python的Python项目详细描述
这是monupco.com的注册代理 dotcloud上的python应用程序。
它编译本地安装的python包的列表,并 发送到monupco.com。
在您的DotCloud应用程序上安装
在http://monupco.com创建帐户
在requirements.txt文件中添加依赖项
在安装后挂钩中启用注册脚本。注意:
如果您使用的是“approt”,则安装后的脚本应该在
由dotcloud.yml的“approt”指令指向的目录。
有关安装后的详细信息,请转到
http://docs.dotcloud.com/guides/postinstall/。 如果一个名为 使安装后可执行
提交更改(如果使用git): 配置您的monupco用户id。你可以从https://monupco-otb.rhcloud.com/profiles/mine/那里得到。 为此应用程序生成唯一标识符并将该值保存为环境变量。 然后将应用程序推送到dotcloud 如果一切顺利,您应该看到如下内容: 就这样,您现在可以在
http://monupco.comecho monupco-dotcloud-python >> requirements.txt
#!/bin/sh
/home/dotcloud/env/bin/monupco-dotcloud-python
chmod a+x postinstall
git add .
git commit -m "enable monupco registration"
dotcloud var set <app name> MONUPCO_USER_ID=UserID
dotcloud var set <app name> MONUPCO_UUID=`uuidgen`
dotcloud push <app name>
19:55:10 [www.0] Running postinstall script...
19:55:13 [www.0] response:200
19:55:13 [www.0] Monupco: Success, registered/updated application with id 10