i want to test out prefect for our script running,...
# prefect-getting-started
s
i want to test out prefect for our script running, currently done with CRON. setup: • run prefect server on premise inside python venv 'venv_PREFECT', listening on localhost and accessable with tunneled port a) if i deploy inside of venv_PREFECT, i would have to install all packages needed inside the project, which is impractical (no module error) b) if i deploy outside of venv_PREFECT, the prefect instance is not found as it looks at PUBLICIP:4200 instead of 127.0.0.1:4200 (connection timeout error) has anyone a hint where i either define where the deployment has to look for the server (problem b) or work around the missing packages (problem a)? or am i missing something conceptually here? with CRON i activate the environment and run the script afterwards which is rather simple but correct.
simple question, no answer given by anyone, put some more thought in it et voila: the prefect config inside the project environment has to listen to localhost as well, in case it does not in default settings, so
prefect config set PREFECT_API_URL='<http://127.0.0.1:4200/api>'
is the solution. no one knew this or bothered to answer? really?