ai-translate.sh.j2 287 B

1234567891011
  1. #!/bin/bash
  2. set -e
  3. . /srv/python3/bin/activate
  4. cd {{ app_deploy_target }}/ai-translate/
  5. # https://github.com/iapt-platform/mint/blob/df8e1cf7ade16d17add360e7a869540c1ddaf1b9/api-v8/config/mint.php#L129
  6. python3 -m ai_translate -c config.toml -n ai.translate -q ai_translate_v2
  7. exit 0