-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
31 lines (28 loc) · 964 Bytes
/
README
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
cult ngrams
first time:
- install virtualenv
- install python2.7
- install redis
- setup virtualenv, run it, clone, install requirements:
mkdir ngrams_env
cd ngrams_env
virtualenv --no-site-packages --python=python27 .
source bin/activate
git clone [email protected]:moret/ngrams.git
cd ngrams
pip install -r requirements.pip
developing
- run redis-server, move to folder, run virtualenv, develop:
(on another terminal) redis-server
cd ngrams_env
source bin/activate
cd ngrams
running
- run redis-server, move to folder, run virtualenv, run server:
(on another terminal) redis-server
cd ngrams_env
source bin/activate
cd ngrams
AWS_ACCESS_KEY_ID='xxx' AWS_SECRET_ACCESS_KEY='yyy' paver run_worker_server
(on another terminal) curl 0.0.0.0:8888/map
(on another terminal) curl 0.0.0.0:8888/process