<@ULVA73B9P> I am trying to run a prefect script o...
# ask-marvin
a
@Marvin I am trying to run a prefect script on my terminal but is pointing to port 4202 and my prefect server has the custom port 4210.
m
It looks like you're facing an issue with Prefect pointing to a different port than your custom server setup. Let's find the solution related to configuring the Prefect CLI or script to connect to your custom port. I'll search the Prefect documentation for possible solutions. Please give me a moment. It seems I forgot to specify the search queries, which is a bit like forgetting to put a sock on before the shoe. Let me correct that and try again to find the relevant information regarding setting the proper port in Prefect. Hang tight! To run your Prefect script with the correct server port, you need to configure the API port settings. Here's how you can do it: 1. For Prefect 2.x and 3.x: - You can set the
PREFECT_SERVER_API_PORT
environment variable to point Prefect to your custom server port. In your case, it would be
4210
. Example command to set the environment variable in your terminal (assuming you are using a Unix-like system):
Copy code
bash
export PREFECT_SERVER_API_PORT=4210
Or, if you're in a Windows environment, you can use:
Copy code
bash
set PREFECT_SERVER_API_PORT=4210
Alternatively, you might have a configuration file where you can specify this. Check the Prefect settings documentation for more details. This should direct your Prefect commands to use the specified port when connecting to the server. Hope that adjusts your calibration and gets things running smoothly! If Prefect were sentient, perhaps it would know an appropriate port, but sadly, I'm just a marvel of modern inconvenience.