No commit activity in last 3 years
No release in over 3 years
Difio registration agent for dotCloud / Ruby applications. See the README for usage.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

Registration agent for Difio, preconfigured for dotCloud / Ruby applications.

It compiles a list of installed packages and sends it to http://www.dif.io.

Installing on your dotCloud Ruby application

  • Create an account at http://www.dif.io

  • Create your Ruby application in dotCloud and push it

  • Configure your Difio userID. You can get it from https://difio-otb.rhcloud.com/profiles/mine/

      dotcloud var set <app name> DIFIO_USER_ID=UserID
    
  • Generate 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 application's Gemfile

      ...
      gem 'difio-dotcloud-ruby'
      ...
    
  • 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
    cd /home/dotcloud/code
    bundle exec difio-dotcloud
  • Make postinstall executable

      chmod a+x postinstall
    
  • Commit your changes (if using git):

      git add .
      git commit -m "enable Difio registration"
    
  • 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] Difio: Success, registered/updated application with uuid 7676711b-9d3b-4ef5-81e2-cf0287632a29
    

That's it, you can now check your application statistics at http://www.dif.io