Enable/Disable profiles

Enable a profile

You can enable any profile, the routing will react to it state.

Command:

hostctl enable awesome

Output:

+---------+--------+----------------+------------------------------+
| PROFILE | STATUS |       IP       |            DOMAIN            |
+---------+--------+----------------+------------------------------+
...
+---------+--------+----------------+------------------------------+
| awesome | on     | 127.0.0.1      | web.my-awesome-project.local |
| awesome | on     | 127.0.0.1      | api.my-awesome-project.local |
+---------+--------+----------------+------------------------------+

Disable a profile

You can disable any profile, all routing for that profile will stop working.

Disabling a profile does not remove the content from the hosts file, this way you can re-enable it later on.

Command:

hostctl disable awesome

Output:

+---------+--------+----------------+------------------------------+
| PROFILE | STATUS |       IP       |            DOMAIN            |
+---------+--------+----------------+------------------------------+
...
+---------+--------+----------------+------------------------------+
| awesome | off    | 127.0.0.1      | web.my-awesome-project.local |
| awesome | off    | 127.0.0.1      | api.my-awesome-project.local |
+---------+--------+----------------+------------------------------+

Last updated by Sven Luijten on August 20, 2023 at 10:27 +0200