Fixed venv name
This commit is contained in:
parent
6fea31e3fb
commit
5227c7cd14
@ -35,8 +35,8 @@ First you need to have a Python interpreter, MongoDB and optionally git. You can
|
||||
3. Create virtual environment [Optional yet recommended]:
|
||||
|
||||
1. Install virtualenv module: `pip install virtualenv`
|
||||
2. Create venv: `python -m venv env`
|
||||
3. Activate it using `source venv/bin/activate` on Linux, `venv\Scripts\activate.bat` in CMD or `venv\Scripts\Activate.ps1` in PowerShell.
|
||||
2. Create venv: `python -m venv .venv`
|
||||
3. Activate it using `source .venv/bin/activate` on Linux, `.venv\Scripts\activate.bat` in CMD or `.venv\Scripts\Activate.ps1` in PowerShell.
|
||||
|
||||
4. Install project's dependencies:
|
||||
|
||||
@ -97,7 +97,7 @@ It's a good practice to use your API as a systemd service on Linux. Here's a qui
|
||||
[Service]
|
||||
Restart=always
|
||||
Type=simple
|
||||
ExecStart=/bin/bash -c 'source venv/bin/activate && venv/bin/uvicorn photos_api:app --port 8054'
|
||||
ExecStart=/bin/bash -c 'source .venv/bin/activate && .venv/bin/uvicorn photos_api:app --port 8054'
|
||||
WorkingDirectory=/opt/PhotosAPI
|
||||
User=photosapi
|
||||
Group=photosapi
|
||||
|
Loading…
Reference in New Issue
Block a user