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
  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!


More Information

For PubNub's developer resources visit

For more info on PubNub's Python SDK visit

For all available PubNub SDKs visit:

Uses python-2.7 with code from