mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[mod] try to make app working on path installation
This commit is contained in:
parent
b5bf55265a
commit
67c837c496
2 changed files with 4 additions and 4 deletions
4
run.py
4
run.py
|
@ -389,13 +389,13 @@ async def job(request, job_id):
|
||||||
if job.count == 0:
|
if job.count == 0:
|
||||||
raise NotFound()
|
raise NotFound()
|
||||||
|
|
||||||
return {"job": job[0]}
|
return {"job": job[0], 'relative_path_to_root': '../../'}
|
||||||
|
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
@jinja.template('index.html')
|
@jinja.template('index.html')
|
||||||
async def index(request):
|
async def index(request):
|
||||||
return {}
|
return {'relative_path_to_root': ''}
|
||||||
|
|
||||||
|
|
||||||
def main(path_to_analyseCI, ssl=False, keyfile_path="/etc/yunohost/certs/ci-apps.yunohost.org/key.pem", certfile_path="/etc/yunohost/certs/ci-apps.yunohost.org/crt.pem"):
|
def main(path_to_analyseCI, ssl=False, keyfile_path="/etc/yunohost/certs/ci-apps.yunohost.org/key.pem", certfile_path="/etc/yunohost/certs/ci-apps.yunohost.org/crt.pem"):
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css">
|
||||||
<script defer src="https://use.fontawesome.com/releases/v5.1.0/js/all.js"></script>
|
<script defer src="https://use.fontawesome.com/releases/v5.1.0/js/all.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
||||||
<script src="/static/js/app.js"></script>
|
<script src="<{ relative_path_to_root }>static/js/app.js"></script>
|
||||||
<link href="/static/css/style.css" rel="stylesheet" type="text/css">
|
<link href="<{ relative_path_to_root }>static/css/style.css" rel="stylesheet" type="text/css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<% block content %><% endblock %>
|
<% block content %><% endblock %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue