Commit ccb98adc authored by contabo-server's avatar contabo-server
Browse files

remove redirect at route '/'

parent dfe5cd4e
......@@ -10,3 +10,8 @@ media/
data/
.env
# logs and temp stuff
*.tmp
*.temp
log.txt
errlog.txt
......@@ -2,7 +2,12 @@
Eine Tolle Webapp zum Austausch von Dateien
## Installation and Usage
# Installation and Usage
`git clone https://gitlab.cs.fau.de/ib49uquh/chiefsend.git`
## Docker
`docker build -t chiefsend:latest .`
`docker-compose up`
......
......@@ -47,9 +47,9 @@ def about():
return render_template('About.html')
@app.route('/')
def index():
return redirect(url_for('upload'))
# @app.route('/')
# def index():
# return redirect(url_for('upload'))
@app.errorhandler(HTTPException)
......@@ -68,6 +68,7 @@ def public():
return render_template('Public.html', shares=shares)
@app.route('/')
@app.route('/upload', methods=['GET', 'POST'])
def upload():
form = UploadForm()
......
......@@ -4,7 +4,7 @@ Description=Chiefsend Web Service gunicorn Worker
[Service]
Type=simple
WorkingDirectory=/home/chief/chiefsend
ExecStart=/home/chief/chiefsend/venv/bin/gunicorn -b :5000 --workers=3 --timeout=90 --graceful-timeout=30 --log-level=DEBUG --access-logfile - --error-logfile - chiefsend:app
ExecStart=/home/chief/chiefsend/venv/bin/gunicorn -b :5000 --workers=3 --log-level=DEBUG --access-logfile /home/chief/chiefsend/log.txt --error-logfile /home/chief/chiefsend/errlog.txt chiefsend:app
Restart=on-failure
[Install]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment