Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3709 from mozilla/no-pyc
Browse files Browse the repository at this point in the history
Bug 957802 - Stop writing pyc files in the VM.
  • Loading branch information
jezdez committed Dec 15, 2015
2 parents 3692e7b + 4b3fe14 commit 320a235
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
@@ -1,4 +1,4 @@
web: make clean && python2.7 manage.py runserver 0.0.0.0:8000
web: python2.7 manage.py runserver 0.0.0.0:8000
worker: python2.7 manage.py celery worker --events --beat --autoreload --concurrency=4 -Q mdn_purgeable,mdn_search,mdn_emails,mdn_wiki,celery
camera: python2.7 manage.py celerycam --freq=2.0
kumascript: node kumascript/run.js
Expand Down
3 changes: 3 additions & 0 deletions provisioning/roles/kuma/files/bash_profile
Expand Up @@ -13,6 +13,9 @@ export NODE_PATH=/usr/local/lib/node_modules:/usr/lib/node_modules
# HACK: We use a self-signed SSL cert in dev; force node.js to accept it.
export NODE_TLS_REJECT_UNAUTHORIZED=0

# Stop Python from writing pyc files
export PYTHONDONTWRITEBYTECODE=1

# More useful to start in the project directory than in user home
cd /home/vagrant/src

Expand Down
2 changes: 2 additions & 0 deletions provisioning/vagrant.yml
Expand Up @@ -37,3 +37,5 @@
- bobbyrenwick.pip
- nodesource.node
- kuma
environment:
PYTHONDONTWRITEBYTECODE: 1

0 comments on commit 320a235

Please sign in to comment.