Skip to content

Commit

Permalink
Reorg project tree
Browse files Browse the repository at this point in the history
  • Loading branch information
nbr23 committed Apr 25, 2020
1 parent a9be903 commit 07a329f
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
FROM python:alpine


RUN mkdir -p /usr/src/app
COPY . /usr/src/app
RUN mkdir -p /usr/src
COPY app /usr/src/app

# Download static files (JS/CSS Libraries)
WORKDIR /usr/src/app/static
Expand All @@ -24,6 +24,7 @@ RUN apk add --no-cache ffmpeg tzdata curl wget && \
apk del curl wget

WORKDIR /usr/src/app
COPY ./requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 8080
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions youtube-dl-server.py → app/youtube-dl-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ class QueueAction:
'YDL_SERVER_PORT': 8080,
'YDL_CACHE_DIR': '/youtube-dl/.cache',
'YDL_DB_PATH': '/youtube-dl/.ydl-metadata.db',
'YDL_SUBTITLES_LANGUAGES': None,
'YDL_SUBTITLES_LANGUAGES': 'all',
}

@app.route('/')
def front_index():
return static_file('index.html', root='./')
return static_file('templates/index.html', root='./')


@app.route('/logs')
def front_logs():
return static_file('logs.html', root='./')
return static_file('templates/logs.html', root='./')


@app.route('/static/:filename#.*#')
Expand Down
File renamed without changes.

0 comments on commit 07a329f

Please sign in to comment.