Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app.skel
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ wsgi-file = %d/subscribie/subscribie.wsgi
master = true
vacuum = true
# %n the filename without extension
# NOTE filename must be uniqe (socket must be
# uniq per app so we use the <webaddress>.ini
socket = /tmp/sockets/%n.sock
#subscribe-to = /tmp/sock2:three.example.com
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def deploy():
contents = f.read()
# Append uwsgi's subscribe-to line with hostname of new site:
contents += "\nsubscribe-to = /tmp/sock2:" + webaddress + "\n"
# Writeout app.ini config to file. uwsgi watches for .ini files
# Writeout <webaddress>.ini config to file. uwsgi watches for .ini files
# uwsgi will automatically detect this .ini file and start
# routing requests to the site
with open(dstDir + '/' + 'app.ini', 'w') as f:
with open(dstDir + '/' + webaddress + '.ini', 'w') as f:
f.write(contents)

login_url = ''.join(['https://', webaddress, '/login/', login_token])
Expand Down