PubNub on OpenShift

Deploy Now

1 vote

This git repository demonstrates how to send messages via PubNub's real-time network on OpenShift using Python.

Once you've created the quickstart, you'll need to create a PubNub account and add your authorization information to your Git repository. Making code changes will require you to set a public SSH key, and then to clone your new application Git repository onto your local machine. See the Getting Started page for more steps in this flow.

Step 1. Get a PubNub Account and Configure Your App

  1. Register at http://www.pubnub.com/free-trial
  2. Retrieve your account's publish and subscribe keys
  3. Edit the application file under wsgi folder
  4. Replace the demo keys in init_pubnub() function
   "demo",  # PUBLISH_KEY
   "demo",  # SUBSCRIBE_KEY

Step 2. Deploy your app

    git add .
    git commit -m "my first commit"
    git push

Step 3. View your app!

    http://$appname-$yournamespace.rhcloud.com

More Information

For PubNub's developer resources visit http://www.pubnub.com/devcenter

For more info on PubNub's Python SDK visit https://github.com/pubnub/python

For all available PubNub SDKs visit: https://github.com/pubnub/pubnub-api

Uses python-2.7 with code from https://github.com/pubnub/pubnub-openshift-quickstart

Language: 
Python