Skip to content

A simple test to get ZeroRPC for Python running on Heroku

Notifications You must be signed in to change notification settings

yuvadm/zerorpc-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ZeroRPC Test

A simple test to get ZeroRPC for Python running on Heroku.

Local Dev

Server

$ python server.py

Client

$ zerorpc -j tcp://localhost:4242 add_42 1
43
$ zerorpc tcp://localhost:4242 add_man 'I own a mint-condition Volkswagen Golf'
"I own a mint-condition Volkswagen Golf, man!"
$ zerorpc tcp://localhost:4242 boat 'I own a mint-condition Volkswagen Golf, man!'
"I'm on a boat!"

Heroku

Init

$ heroku create
Creating app-name-9999... done, stack is cedar
http://app-name-9999.herokuapp.com/ | git@heroku.com:app-name-9999.git
$ git push heroku master

Run

$ zerorpc -j tcp://app-name-9999.herokuapp.com:4242 add_42 1

FAIL :(

Heroku doesn't like plain TCP sockets...

About

A simple test to get ZeroRPC for Python running on Heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published