-
cd ~/.../backend326
-
virtualenv -p <SOME_PYTHON_PATH> venv
or
virtualenv -p /usr/bin/python2.7 venv
-
Activate virtualenv
source venv/bin/activate
-
Install dependencies in virtualenv
pip install -r requirements.txt
-
Deactivate virtualenv
deactivate
-
Activate the virtualenv
-
python crawler.py
-
Activate the virtualenv
-
nosetests -v
-
Add AWS credentials in the following files:
in
~/.aws/credentials
[csc326] aws_access_key_id = #### aws_secret_access_key = #####
in
~/.aws/config
[profile csc326] output = text region = us-east-1
-
cd ~/.../backend326
-
Activate virtualenv
-
python deploy.py
-
Add AWS credentials in the following files:
in
~/.aws/credentials
[csc326] aws_access_key_id = #### aws_secret_access_key = #####
in
~/.aws/config
[profile csc326] output = text region = us-east-1
-
cd ~/.../backend326
-
Activate virtualenv
-
python terminate.py <instance_id>