Closed
Bug 774891
Opened 12 years ago
Closed 12 years ago
Default to correct config file paths in run.py
Categories
(Cloud Services Graveyard :: Server: Sync, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rfkelly, Assigned: rfkelly)
Details
(Whiteboard: [qa+])
Attachments
(1 file, 1 obsolete file)
1.09 KB,
patch
|
bobm
:
review+
|
Details | Diff | Splinter Review |
Currently our run.py scripts default to e.g. /etc/aitc/production.ini for the config file, but we change this with an environment variable in production to be /etc/mozilla-services/aitc/production.ini. We should just default to the correct path.
Updated•12 years ago
|
Whiteboard: [qa+]
Assignee | ||
Comment 1•12 years ago
|
||
Patch updating server-aitc to look in the correct place for the production .ini file. :bobm does this look right to you? I will also make a corresponding change for syncstorage.
Attachment #654109 -
Flags: review?(bobm)
Comment 2•12 years ago
|
||
Comment on attachment 654109 [details] [diff] [review] patch to load production .ini from correct location Looks good to me. What is the purpose of the fallback to tests.ini? Wouldn't we want it to break in production if the .ini file was missing? Or will it be very _vocal_ about using tests.ini?
Attachment #654109 -
Flags: review?(bobm)
Attachment #654109 -
Flags: review+
Attachment #654109 -
Flags: feedback+
Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Bob Micheletto [:bobm] from comment #2) > Looks good to me. What is the purpose of the fallback to tests.ini? > Wouldn't we want it to break in production if the .ini file was missing? Or > will it be very _vocal_ about using tests.ini? Hmmm...the original intention was to be able to run a test server without having to configure anything. You're right though, this does seem like it could be dangerous by masking errors and/or running with an insecure config by accident.
Assignee | ||
Comment 4•12 years ago
|
||
This patch raises a descriptive error message instead of falling back to the testing config file.
Assignee: nobody → rfkelly
Attachment #654109 -
Attachment is obsolete: true
Attachment #654497 -
Flags: review?(bobm)
Updated•12 years ago
|
Attachment #654497 -
Flags: review?(bobm) → review+
Assignee | ||
Comment 5•12 years ago
|
||
https://github.com/mozilla-services/server-aitc/commit/2e8bc35ba6ffa9e37a63d4fd6dbaa9f83faf90e3 https://github.com/mozilla-services/server-syncstorage/commit/28c562bf3ca0a5bbd8c07c1ccae381345ff2ece0
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•1 year ago
|
Product: Cloud Services → Cloud Services Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•