Skip to content

Commit

Permalink
Revert "Revert "Disable compiling python files as part of the deploym…
Browse files Browse the repository at this point in the history
…ent""

This reverts commit 408aacd.

Testing completed, and enough troubleshooting data collected for now.
  • Loading branch information
rjhenry committed Nov 23, 2023
1 parent 408aacd commit e8f836f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deploy/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ def make_virtualenv(env="dev", configure_apache=False, clone_repo=False, branch=
caller('./bin/pip3 install --no-deps -r src/temmpo/requirements/%s.txt' % requirements)
caller('./bin/pip3 freeze')

# Regenerate all pyc files
caller('./bin/python3 src/temmpo/manage.py regenerate_pyc --settings=temmpo.settings.%s' % env)
# # Regenerate all pyc files
# caller('./bin/python3 src/temmpo/manage.py regenerate_pyc --settings=temmpo.settings.%s' % env)

# TMMA-426: Update deployment scripts to remove any .exe files from pip environment
caller('find . -name *.exe | xargs rm -f')
Expand Down Expand Up @@ -208,8 +208,8 @@ def deploy(env="dev", branch="master", using_apache=True, migrate_db=True, use_l
else:
caller('./bin/pip3 install -r src/temmpo/requirements/%s.txt' % requirements)

# Regenerate all pyc files
caller('./bin/python3 src/temmpo/manage.py regenerate_pyc --settings=temmpo.settings.%s' % env)
# # Regenerate all pyc files
# caller('./bin/python3 src/temmpo/manage.py regenerate_pyc --settings=temmpo.settings.%s' % env)

if migrate_db:
caller('./bin/python3 src/temmpo/manage.py migrate --noinput --database=admin --settings=temmpo.settings.%s' % env)
Expand Down

0 comments on commit e8f836f

Please sign in to comment.