I already have the ports that the CLI is trying to use (8080, 5432) occupied. Can I change the ports when starting a project?

Yes you can! By default, astro airflow start will start your project with the Airflow web server exposed at port 8080 and postgres exposed at 5432. You can change this by specifying the ports you want used in your config.yaml file.

project:
  name: demo
webserver:
  port: 8081
postgres:
  port: 5435

Note: Your config.yaml file is in a hidden .astro directory in the initialized project folder. You can find it by either opening your project in a text editor or by running ls -a from the command line.

3 Likes

Quick addition here that if you need to change the host instead of the port, check out this forum post.

One more addition here because I had trouble figuring it out- that config.yaml file is in a hidden .astro directory in the initialized project folder. You can find it by either opening your project in a text editor or by running ls -a from the command line.

1 Like