Closed
Bug 1314258
Opened 9 years ago
Closed 5 years ago
./manage.py collectstatic run without environment variables
Categories
(Socorro :: Infra, task, P3)
Socorro
Infra
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: peterbe, Unassigned)
Details
Attachments
(1 file)
The command `./manage.py collectstatic` [0] is being run without any config.
It's fortunate this hasn't hurt us before but now, when we run it, we need access to GOOGLE_ANALYTICS_ID which is configured in settings/base.py and it's value comes from consulate socorro/webapp-django
[0] https://github.com/mozilla/socorro/blob/af8f5ae090ecb4439131b860e18bd3e98df7280c/webapp-django/bin/bootstrap.sh#L18
| Reporter | ||
Updated•9 years ago
|
Assignee: nobody → peterbe
| Reporter | ||
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/socorro
https://github.com/mozilla/socorro/commit/98e0558bf0762607e449304d98cc2aaed0499a10
bug 1314258 - run './manage.py collectstatic' with env vars (#3566)
* bug 1314258 - run './manage.py collectstatic' with env vars
* default in setting instead
* cleaning up comment about hack
| Reporter | ||
Comment 3•9 years ago
|
||
JP, I had to do something drastic to get the google analytics to work again. See PR mentioned/linked above.
Ideally we should be executing the `./manage.py collectstatic` command WITH consulate setting all the environment variables. Can you figure out how to do that?
Assignee: peterbe → jschneider
Component: Webapp → Infra
| Reporter | ||
Updated•9 years ago
|
Assignee: jschneider → adrian
Priority: -- → P2
| Reporter | ||
Updated•9 years ago
|
Assignee: adrian → miles
Comment 4•8 years ago
|
||
Changing this bug to be a P3. It's interesting, but probably not something we have time for. If there's a compelling reason why this has urgency and should get done now, please let us know in a comment!
Priority: P2 → P3
Comment 5•7 years ago
|
||
At this point we could achieve this result in the new infrastructure without baking the GA ID into the code by injecting it into the Docker build process in CircleCI.
Updated•5 years ago
|
Assignee: miles → nobody
Updated•5 years ago
|
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•