Skip to content
Snippets Groups Projects
Verified Commit b15ac838 authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

aurweb: Make SSH faster by avoiding slow Poetry (~2,5 sec faster)

"poetry run" is very slow[1] and adds +1 second to the startup time.
This is made even worse by the fact that aurweb-git-serve is called
twice by sshd[2].

[1] https://github.com/python-poetry/poetry/issues/3502
[2] https://security.stackexchange.com/questions/123795/authorizedkeyscommand-of-sshd-config-getting-called-twice/123801#123801
parent 3b53daa5
No related branches found
No related tags found
1 merge request!612aurweb: Make SSH faster by avoiding slow Poetry (~2,5 sec faster)
......@@ -177,6 +177,8 @@
command: poetry install
args:
chdir: "{{ aurweb_dir }}"
environment:
POETRY_VIRTUALENVS_IN_PROJECT: "true"
become: true
become_user: "{{ aurweb_user }}"
when: release.changed or aurweb_installed.rc != 0
......
#!/bin/bash
cd "{{ aurweb_dir }}"
exec poetry run aurweb-git-auth "$@"
exec "{{ aurweb_dir }}/.venv/bin/aurweb-git-auth" "$@"
#!/bin/bash
cd "{{ aurweb_dir }}"
exec poetry run aurweb-git-serve "$@"
exec "{{ aurweb_dir }}/.venv/bin/aurweb-git-serve" "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment