fpcentral.wsgi 509 B

123456789101112131415
  1. activate_this = '{{ fpcentral_virtualenv }}/bin/activate_this.py'
  2. with open(activate_this) as file_:
  3. exec(file_.read(), dict(__file__=activate_this))
  4. import sys
  5. sys.path.insert(0, '{{ fpcentral_rootdir }}/fpcentral')
  6. import os
  7. os.chdir('{{ fpcentral_rootdir }}/fpcentral')
  8. from run import app as application
  9. # we include the fpcentral commit as a comment, to make sure the
  10. # fpcentral.wsgi file is modified when the commit is updated, causing
  11. # the process to be restarted:
  12. # {{ fpcentral_git_commit }}