Skip to content

Commit

Permalink
adding beta-uwsgi.ini (same as dev, just different string constants)
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoud committed Jun 11, 2017
1 parent fc8dc36 commit 96c7028
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions config/beta-uwsgi.ini
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

0 comments on commit 96c7028

Please sign in to comment.