added another exception
This commit is contained in:
7
.dockerignore
Normal file
7
.dockerignore
Normal file
@@ -0,0 +1,7 @@
|
||||
.venv
|
||||
__pycache__/
|
||||
*.pyc
|
||||
nohup.out
|
||||
.git
|
||||
log/
|
||||
|
||||
@@ -204,8 +204,8 @@ def serve_deck(deck, path='index.html'):
|
||||
if slidev_all_pattern.match(request.path):
|
||||
return send_from_directory(deck_path, 'index.html')
|
||||
|
||||
if deck == "tut-08" and path == 'index.html':
|
||||
return send_from_directory(deck_path, 'slides08.pdf')
|
||||
if deck in ["tut-08","tut-11"] and path == 'index.html':
|
||||
return send_from_directory(deck_path, 'slides.pdf')
|
||||
|
||||
requested_file = os.path.join(deck_path, path)
|
||||
if os.path.isfile(requested_file):
|
||||
|
||||
6
debug.py
Normal file
6
debug.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from app import create_app, socketio
|
||||
|
||||
app = create_app()
|
||||
|
||||
if __name__ == '__main__':
|
||||
socketio.run(app, host="127.0.0.1", port=5000, debug=True)
|
||||
Reference in New Issue
Block a user