Hi PA Team,
I have a bash script I created which pulls code from github, applies migrations, and reloads the server. It works flawlessly when I run it from a bash console; however, when I tried to create a task to do this automatically I run into some errors and can't seem to figure out why.
The command is setup like a normal bash command from the tasks page in my dashboard (/home/xDev/deploy/staging.sh
) but I keep getting the following:
[1;34m3. Installing project:[0m
Traceback (most recent call last):
File "/home/xDev/.poetry/bin/poetry", line 17, in <module>
from poetry.console import main
ImportError: cannot import name 'main' from 'poetry.console' (/home/xDev/.local/lib/python3.9/site-packages/poetry/console/__init__.py)
2022-12-05 04:01:26 -- Completed task, took 50.46 seconds, return code was 1.
Moreover, at the top of the script I have a set -e
and on it's previous run it didn't seem to exit early.
I've updated poetry to the latest version and it's working in all other areas, just not the scheduled tasks -- any idea on why this might be?
Thank you for your time!