Created
April 20, 2015 19:18
-
-
Save bbangert/e04108b9bb53f99ec6d3 to your computer and use it in GitHub Desktop.
Running autopush
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First, checkout the code: | |
$ git clone https://github.com/mozilla-services/autopush.git | |
$ git clone https://github.com/mozilla-services/simplepush_test.git | |
Setup the tester (assumes virtualenv is on the path): | |
$ cd simplepush_test | |
(simplepush_test/) $ make | |
Setup the autopush app: | |
$ cd autopush | |
-- Get pypy, extract it, and name it 'pypy' | |
(autopush/) $ make | |
Copy the boto file to make sure AWS calls go to local mock AWS (if you have a ~/.boto, save that elsewhere first): | |
(autopush/) $ cp automock/boto.cfg ~/.boto | |
Run the mock AWS server in the autopush dir: | |
(autopush/) $ ./pypy/bin/pip install moto | |
(autopush/) $ ./pypy/bin/moto_server dynamodb2 -p 5000 | |
Run autoendpoint in the autopush dir: | |
(autopush/) $ ./pypy/bin/autoendpoint | |
Run autopush in the autopush dir: | |
(autopush/) $ ./pypy/bin/autopush --ssl_key keys/server.key --ssl_cert keys/server.crt | |
Now run some load against it with the tester: | |
(simplepush_test/) $ while (true) { PUSH_SERVER=wss://lmnt:8080/ ./bin/nosetests; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The last command of the main txt should read:
(simplepush_test/) $ while (true) { PUSH_SERVER=wss://localhost:8080/ ./bin/nosetests; }