Closed Bug 965669 Opened 10 years ago Closed 10 years ago

set PYTHONPATH=. and PYTHONUNBUFFERED=true in .env for Procfile

Categories

(Socorro :: Infra, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rhelmer, Assigned: rhelmer)

Details

Attachments

(1 file)

The backend Socorro apps require PYTHONPATH to be set to . (to be able to import things from socorro.*)

Let's set this in the Procfile so people don't need to do this by hand anymore.
Status: NEW → ASSIGNED
Attachment #8367786 - Flags: review?(chris.lonnen)
Target Milestone: --- → 73
Oh - turns out honcho looks in ".env" for environment variables, can just set it once there.

While we're at it, let's turn off buffering - it makes it tough for development if you like to do print-style debugging.
Summary: set PYTHONPATH=. in Procfile → set PYTHONPATH=. and PYTHONUNBUFFERED=true in .env for Procfile
Commits pushed to master at https://github.com/mozilla/socorro

https://github.com/mozilla/socorro/commit/c8075c5320ebce468b5635808fc1ebd715341f45
fixes bug 965669 - set PYTHONPATH=. in Procfile

https://github.com/mozilla/socorro/commit/0ec32071dbf4d8d8df85d7f513fb2d86be3a645a
Merge pull request #1844 from rhelmer/bug965669-set-pythonpath-in-procfile

fixes bug 965669 - set PYTHONPATH=. in Procfile
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Attachment #8367786 - Flags: review?(chris.lonnen) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: