Skip to main content

monupco.com registartion agent for dotCloud / Python applications

Project description

This is a registration agent for monupco.com preconfigured for Python applications on DotCloud.

It compiles a list of locally installed Python packages and sends it to monupco.com.

Installing on your dotCloud application

Create an account at http://monupco.com

Add a dependency in your requirements.txt file

echo monupco-dotcloud-python >> requirements.txt

Enable 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/monupco-dotcloud-python

Make postinstall executable

chmod a+x postinstall

Commit your changes (if using git):

git add .
git commit -m "enable monupco registration"

Configure your Monupco userID. You can get it from https://monupco-otb.rhcloud.com/profiles/mine/.

dotcloud var set <app name> MONUPCO_USER_ID=UserID

Generate a unique identifier for this application and save the value as environmental variable.

::

dotcloud var set <app name> MONUPCO_UUID=`uuidgen`

Then push your application to dotCloud

dotcloud push <app name>

If everything goes well you should see something like:

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

That’s it, you can now check your application statistics at http://monupco.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

monupco-dotcloud-python-2.4.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file monupco-dotcloud-python-2.4.tar.gz.

File metadata

File hashes

Hashes for monupco-dotcloud-python-2.4.tar.gz
Algorithm Hash digest
SHA256 8d86642ea73486ffbfdee6d3f6ceed8293719b59889a5764900ee242bcc395b3
MD5 3473d293ae78fe793d7294e0347e92eb
BLAKE2b-256 b52ec940e569e1e1f7c41da732f309ee86fb5fa91890fa40e05330aa0b1f0067

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page