Skip to content

Commit e1f0a01

Browse files
committed
Redirect to the preseed instead of downloading it
1 parent c8a8de3 commit e1f0a01

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,5 @@ COPY . .
1111

1212
WORKDIR /app/src
1313

14-
# Get the latest preseed and serve it
15-
RUN curl 'https://raw.githubusercontent.com/ComputerScienceHouse/Devcade-onboard/main/idiot/preseed.txt' > /app/src/static/files/preseed.txt
16-
1714
CMD [ "gunicorn", "--bind", "0.0.0.0:8080", "app:app"]
1815
# CMD ["python3", "app.py"]

src/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def gamejam():
101101

102102
@app.route('/preseed')
103103
def preseed():
104-
return flask.send_file("static/files/preseed.txt")
104+
return flask.redirect('https://raw.githubusercontent.com/ComputerScienceHouse/Devcade-onboard/main/idiot/preseed.txt')
105105

106106
@app.errorhandler(Exception)
107107
def page404(e):

0 commit comments

Comments
 (0)