Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
url_shorter_docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
url_shorter_docker
Commits
4c9d7c88
Commit
4c9d7c88
authored
5 years ago
by
Jonas Leder
Browse files
Options
Downloads
Patches
Plain Diff
added favicon
parent
7db2cac4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
main.py
+1
-1
1 addition, 1 deletion
main.py
static/favicon.ico
+0
-0
0 additions, 0 deletions
static/favicon.ico
with
2 additions
and
2 deletions
Dockerfile
+
1
−
1
View file @
4c9d7c88
...
...
@@ -8,7 +8,7 @@ FROM python:3
# If you prefer miniconda:
#FROM continuumio/miniconda3
LABEL
Name=url_shorter Version=1.1.
2
LABEL
Name=url_shorter Version=1.1.
3
EXPOSE
5000
WORKDIR
/app
...
...
This diff is collapsed.
Click to expand it.
main.py
+
1
−
1
View file @
4c9d7c88
...
...
@@ -95,7 +95,7 @@ def home():
@app.route
(
'
/favicon.ico
'
)
#There is no favicon, so fail.
def
favicon
():
abort
(
404
)
return
redirect
(
"
/static/favicon.ico
"
)
@app.route
(
'
/<short_url>
'
)
def
redirect_short_url
(
short_url
):
...
...
This diff is collapsed.
Click to expand it.
static/favicon.ico
0 → 100644
+
0
−
0
View file @
4c9d7c88
1.12 KiB
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment