<commit_before>Readme
------

This directory has the live playbooks that we use here at Stanford to
maintain our instance of OpenEdX at [class.stanford.edu][c].  We check
it in to this public repo since we think that others might benefit from
seeing how we are configured.

  [c]: https://class.stanford.edu/

That said, we haven't documented things in here well, so we have no
expectation that others will be able to make enough sense of this to
give us useful contributions back.  Generally a PR affecting files in
here will be ignored / rejected.

This README is a useful proximate place to keep commands.  But it is 
a public repo so we shouldn't store anything confidential in here.

Other install docs:

- Giulio's install doc [here][1].

  [1]: https://docs.google.com/document/d/1ZDx51Jxa-zffyeKvHmTp_tIskLW9D9NRg9NytPTbnrA/edit#heading=h.iggugvghbcpf


Ansible Commands - Prod
-----------------------

Generally we do installs as the "ubuntu" user.  You want to make
sure that the stanford-deploy-20130415 ssh key is in your ssh agent.

    ANSIBLE_EC2_INI=ec2.ini ansible-playbook prod-log.yml -u ubuntu -c ssh -i ./ec2.py


Ansible Commands - Stage
------------------------

Verify that you're doing something reasonable:<commit_msg>add prod-ssh to our example edx config<commit_after>Readme
------

This directory has the live playbooks that we use here at Stanford to
maintain our instance of OpenEdX at [class.stanford.edu][c].  We check
it in to this public repo since we think that others might benefit from
seeing how we are configured.

  [c]: https://class.stanford.edu/

That said, we haven't documented things in here well, so we have no
expectation that others will be able to make enough sense of this to
give us useful contributions back.  Generally a PR affecting files in
here will be ignored / rejected.

This README is a useful proximate place to keep commands.  But it is 
a public repo so we shouldn't store anything confidential in here.

Other install docs:

- Giulio's install doc [here][1].

  [1]: https://docs.google.com/document/d/1ZDx51Jxa-zffyeKvHmTp_tIskLW9D9NRg9NytPTbnrA/edit#heading=h.iggugvghbcpf


Ansible Commands - Prod
-----------------------

Generally we do installs as the "ubuntu" user.  You want to make
sure that the stanford-deploy-20130415 ssh key is in your ssh agent.

    ANSIBLE_CONFIG=prod-ansible.cfg ANSIBLE_EC2_INI=ec2.ini ansible-playbook prod-log.yml -u ubuntu -c ssh -i ./ec2.py


Ansible Commands - Stage
------------------------

Verify that you're doing something reasonable:
{'fraction_non_alphanumeric': 0.10137524557956779, 'fraction_numerical': 0.01493123772102161, 'mean_word_length': 3.2934232715008434, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6173637', 'n_tokens_mistral': 834, 'n_tokens_neox': 757, 'n_words': 332}