Closed
Bug 1272673
Opened 9 years ago
Closed 8 years ago
make app.psgi runnable, fix static path regex to efficient, and make @INC contain absolute paths.
Categories
(Bugzilla :: Installation & Upgrading, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 6.0
People
(Reporter: dylan, Assigned: dylanAtHome)
References
Details
Attachments
(1 file, 5 obsolete files)
To use plackup for development, it is required to pass several paths using -R so that when files change, the service is restarted. Rather than burden the documentation with this, we should have a wrapper that runs it with the correct parameters for development.
Reporter | ||
Updated•9 years ago
|
Target Milestone: --- → Bugzilla 6.0
Version: 4.4 → 5.1
Comment hidden (obsolete) |
Updated•9 years ago
|
Severity: normal → enhancement
Component: Bugzilla-General → Installation & Upgrading
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Updated•8 years ago
|
Flags: needinfo?(olga-github)
Comment hidden (obsolete) |
Reporter | ||
Updated•8 years ago
|
Attachment #8800489 -
Attachment mime type: application/x-perl → text/plain
Reporter | ||
Updated•8 years ago
|
Summary: Add wrapper for plackup optimized for development → make app.psgi runnable
Reporter | ||
Updated•8 years ago
|
Attachment #8800489 -
Attachment is obsolete: true
Comment 7•8 years ago
|
||
Comment 8•8 years ago
|
||
Reporter | ||
Updated•8 years ago
|
Assignee: dylan → dylan
Assignee | ||
Updated•8 years ago
|
Attachment #8841247 -
Attachment is obsolete: true
Assignee | ||
Updated•8 years ago
|
Summary: make app.psgi runnable → make app.psgi runnable, fix static path regex to efficient, and make @INC contain absolute paths.
Assignee | ||
Comment 9•8 years ago
|
||
Comment on attachment 8841282 [details] [review]
[bugzilla] dylanwh:bug-1272673 > bugzilla:master
The pull request does three things that are pretty non-controversial:
1) it makes it so @INC contains only absolute paths, and also disables 'use lib' (copying the behavior from mod_perl.pl)
2) For the static file handling, it sorts the regex by length, which gurantees that the regex match more efficiently. This was inspired by what the wonderful list2re() function of Data::Munge does. https://metacpan.org/pod/Data::Munge#list2re-LIST
3) Finally, it users caller() to detect if it is being run on the command line, and if so it runs itself. So we don't need the user to type a weird complicated command, they just run "perl app.psgi".
This is the recommended way of making a self-runnable psgi, per the documentation:
https://metacpan.org/pod/Plack::Runner#NOTES
Attachment #8841282 -
Flags: review?(jfearn)
Updated•8 years ago
|
Attachment #8841282 -
Flags: review?(jfearn) → review+
Assignee | ||
Comment 10•8 years ago
|
||
To git@github.com:bugzilla/bugzilla.git
dfb688869..c6363140a master -> master
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•