difio-dotcloud-python

Difio registration agent for dotCloud / Python applications
Download

difio-dotcloud-python Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Alexander Todorov
  • Publisher web site:
  • http://monupco.com

difio-dotcloud-python Tags


difio-dotcloud-python Description

difio-dotcloud-python is a registration agent for Difio preconfigured for Python applications on DotCloud.It compiles a list of locally installed Python packages and sends it to http://www.dif.io.Installing on your dotCloud applicationCreate an account at http://www.dif.ioCreate your Python application on dotCloudConfigure your Difio userID. You can get it from https://difio-otb.rhcloud.com/profiles/mine/.dotcloud var set < app name > DIFIO_USER_ID=UserIDGenerate a unique identifier for this application and save the value as environmental variable.dotcloud var set < app name > DIFIO_UUID=`uuidgen`Add a dependency in your requirements.txt fileecho difio-dotcloud-python >> requirements.txtEnable the registration script in your postinstall hook. Note: If you are using an "approot" your postinstall script should be in the directory pointed by the “approot” directive of your dotcloud.yml. For more information about postinstall turn to http://docs.dotcloud.com/guides/postinstall/.If a file named postinstall doesn't already exist, create it and add the following:#!/bin/sh/home/dotcloud/env/bin/difio-dotcloud-pythonMake postinstall executablechmod a+x postinstallCommit your changes (if using git):git add .git commit -m "enable Difio registration"Then push your application to dotClouddotcloud push < app name >If everything goes well you should see something like:19:55:10 Running postinstall script...19:55:13 response:20019:55:13 Difio: Success, registered/updated application with uuid ac5a3741-a564-4e59-aad2-3f51ea860521That's it, you can now check your application statistics at http://www.dif.io.Product's homepage


difio-dotcloud-python Related Software