blob: e2312bd711b14052e3f1fbcf6bb581cc78cbee64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# ZeroRPC Test
A simple test to get ZeroRPC for Python running on Heroku.
## Local Dev
### Server
```bash
$ python server.py
```
### Client
```bash
$ 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
```bash
$ 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
```bash
$ zerorpc -j tcp://app-name-9999.herokuapp.com:4242 add_42 1
FAIL :(
```
Heroku doesn't like plain TCP sockets...
|