-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding beta-uwsgi.ini (same as dev, just different string constants)
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# in production, this file goes in ~/www/python/ | ||
|
||
[uwsgi] | ||
plugins = python,router_redirect | ||
|
||
# due to the way the javascript bundle works, a trailing slash is | ||
# necessary on the app URL. due to the way mounts work in uwsgi, this | ||
# slash can't be issued from the app. instead we use uwsgi's routing | ||
# table. the order of the lines matters, keep this where it is (above | ||
# the mount) unless you know what you're doing. | ||
|
||
route = ^/montage-beta$ log:hit slashless root, attempting to redirect | ||
route = ^/montage-beta$ redirect-permanent:https://tools.wmflabs.org/montage-beta/ | ||
|
||
mount = /montage-beta=/data/project/montage-beta/montage/montage/server.py | ||
workers = 10 |