Ver Fonte

:bug: fix ai-translate container

China Kassapa há 2 meses atrás
pai
commit
4394624240
1 ficheiros alterados com 5 adições e 1 exclusões
  1. 5 1
      deploy/roles/mint-v2.3/templates/ai-translate.sh.j2

+ 5 - 1
deploy/roles/mint-v2.3/templates/ai-translate.sh.j2

@@ -2,6 +2,10 @@
 
 set -e
 
-# TODO
+. /srv/python3/bin/activate
+
+cd {{ app_deploy_target }}/ai-translate/
+# https://github.com/iapt-platform/mint/blob/df8e1cf7ade16d17add360e7a869540c1ddaf1b9/api-v8/config/mint.php#L129
+python3 -m ai_translate -c config.toml -n ai.translate -q ai_translate_v2
 
 exit 0