mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 18:26:56 +00:00
Updated documentation about running local development instance. (#4205)
* Updated documentation about running local development instance. * Make it venv only
This commit is contained in:
parent
cfeb8fac3d
commit
de6ecd1d11
@ -85,21 +85,23 @@ $ git remote add upstream https://github.com/home-assistant/home-assistant.git
|
|||||||
|
|
||||||
### {% linkable_title Setting up virtual environment %}
|
### {% linkable_title Setting up virtual environment %}
|
||||||
|
|
||||||
If you plan on providing isolation to your environment using [`venv`](https://docs.python.org/3.4/library/venv.html). Within the `home-assistant` directory, create and activate your virtual environment.
|
To isolate your environment from the rest of the system, set up a [`venv`](https://docs.python.org/3.4/library/venv.html). Within the `home-assistant` directory, create and activate your virtual environment.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ python3 -m venv venv
|
$ python3 -m venv .
|
||||||
$ source venv/bin/activate
|
$ source bin/activate
|
||||||
```
|
```
|
||||||
|
Install the requirements with a provided script named `setup`.
|
||||||
### {% linkable_title Setup and Run %}
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd home-assistant
|
|
||||||
$ script/setup
|
$ script/setup
|
||||||
```
|
```
|
||||||
|
|
||||||
* Run `hass` to invoke your local installation.
|
Invoke your installation.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ hass
|
||||||
|
```
|
||||||
|
|
||||||
### {% linkable_title Logging %}
|
### {% linkable_title Logging %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user