Skip to content

Commit

Permalink
fix:url
Browse files Browse the repository at this point in the history
  • Loading branch information
xizeyoupan committed Jul 3, 2023
1 parent 84f4d7e commit f2a884d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ secrets.DOCKERHUB_USERNAME }}/kinss

- name: Build and push docker image
uses: docker/build-push-action@v2
with:
Expand All @@ -31,7 +37,7 @@ jobs:
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/kinss:latest
${{ secrets.DOCKERHUB_USERNAME }}/kinss:1.1
${{ steps.meta.outputs.tags }}
- name: Depoly to flyio, using fly.toml
uses: superfly/flyctl-actions@master
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN python -m pip install -U --force-reinstall pip \
&& pip install -r /code/requirements.txt
WORKDIR /code

CMD ["python", "/code/app.py"]
CMD ["python", "/code/app.py"]
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def load_user(username):

@app.route('/')
def index():
return '<a href=/login>login</a><hr><a href=/article>read</a>'
return '<a href="/login">login</a><hr><a href="/article">read</a>'


@app.route('/article')
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Flask_Login==0.6.2
Flask==2.2.2
Flask==2.3.2
gevent==22.10.2
qrcode==6.1
Flask_RESTful==0.3.9
beautifulsoup4==4.9.1
lxml==4.9.1
Pillow==9.3.0
requests==2.22.0
requests==2.31.0
4 changes: 2 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{% block title %}{% endblock %}</title>
<link href="static/custom.css" rel="stylesheet" type="text/css">
<link href="https://unpkg.com/[email protected]/css/font-awesome.min.css" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/dist/jquery.min.js"></script>
<link href="https://unpkg.2333332.xyz/[email protected]/css/font-awesome.min.css" rel="stylesheet">
<script src="https://unpkg.2333332.xyz/[email protected]/dist/jquery.min.js"></script>
</head>

{% block body %}{% endblock %}
Expand Down

0 comments on commit f2a884d

Please sign in to comment.