Difio registration agent for CloudControl / Python applications
Project description
Difio registration agent for CloudControl / Python applications.
It compiles a list of locally installed Python packages and sends it to
<http://www.dif.io>.
Installing on your CloudControl application
--------------------------------------
Create an account at <http://www.dif.io>
Create a Python application on CloudControl
Add a dependency in your `requirements.txt` file
::
echo 'difio-cloudcontrol-python' >> requirements.txt
Set the following environment variables on Heroku
::
cctlapp config:set DIFIO_USER_ID=YourUserID
heroku config:set DIFIO_APP_NAME=MyApplication
heroku config:set DIFIO_APP_URL=http://myapp.cloudcontrolled.com
Then commit, push and deploy your application to CloudControl
::
git commit -a -m "added dependency on Difio"
cctrlapp myapp push
cctrlapp myapp deploy
Execute the registration script to submit the information to Difio
::
cctrlapp myapp run /srv/www/.heroku/venv/bin/difio-cctrl-python
Running `/srv/www/.heroku/venv/bin/difio-cctrl-python` attached to terminal... up, run.1
Success, registered/updated application 8370e3be-6e54-462d-9ca9-224301c29a1d
That's it, you can now check your application statistics at
<http://www.dif.io>
Updating your requirements.txt
------------------------------
Whenever you change your `requirements.txt` file to include new
dependencies or upgrade/downgrade package versions you should
re-submit the information to Difio.
::
cctrlapp myapp run /srv/www/.heroku/venv/bin/difio-cctrl-python
It compiles a list of locally installed Python packages and sends it to
<http://www.dif.io>.
Installing on your CloudControl application
--------------------------------------
Create an account at <http://www.dif.io>
Create a Python application on CloudControl
Add a dependency in your `requirements.txt` file
::
echo 'difio-cloudcontrol-python' >> requirements.txt
Set the following environment variables on Heroku
::
cctlapp config:set DIFIO_USER_ID=YourUserID
heroku config:set DIFIO_APP_NAME=MyApplication
heroku config:set DIFIO_APP_URL=http://myapp.cloudcontrolled.com
Then commit, push and deploy your application to CloudControl
::
git commit -a -m "added dependency on Difio"
cctrlapp myapp push
cctrlapp myapp deploy
Execute the registration script to submit the information to Difio
::
cctrlapp myapp run /srv/www/.heroku/venv/bin/difio-cctrl-python
Running `/srv/www/.heroku/venv/bin/difio-cctrl-python` attached to terminal... up, run.1
Success, registered/updated application 8370e3be-6e54-462d-9ca9-224301c29a1d
That's it, you can now check your application statistics at
<http://www.dif.io>
Updating your requirements.txt
------------------------------
Whenever you change your `requirements.txt` file to include new
dependencies or upgrade/downgrade package versions you should
re-submit the information to Difio.
::
cctrlapp myapp run /srv/www/.heroku/venv/bin/difio-cctrl-python
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file difio-cloudcontrol-python-1.1.tar.gz
.
File metadata
- Download URL: difio-cloudcontrol-python-1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab9339e86c75734c28987df4f640ca2b31dc8402b2067b84cec47f6275a4b744 |
|
MD5 | cd50780029b24155dd08f4fb9dd79406 |
|
BLAKE2b-256 | b120fb6975f7fede72d9d4ae379e580a98da309e6990909e24c05902d2e81caa |