venv anleitung
This commit is contained in:
parent
dc5113d303
commit
e3b19bb0df
3 changed files with 35 additions and 19 deletions
19
README.md
19
README.md
|
|
@ -21,12 +21,19 @@ Automatisierter Workflow zum Erstellen von WordPress-Beiträgen aus Markdown-Dat
|
|||
|
||||
1. **Repository klonen oder herunterladen**
|
||||
|
||||
2. **Python-Abhängigkeiten installieren**
|
||||
2. **Virtuelle Umgebung aktivieren**
|
||||
```bash
|
||||
source .venv/bin/activate
|
||||
```
|
||||
|
||||
Sie sollten jetzt `(.venv)` am Anfang Ihrer Kommandozeile sehen.
|
||||
|
||||
3. **Python-Abhängigkeiten installieren**
|
||||
```bash
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
3. **Umgebungsvariablen konfigurieren**
|
||||
4. **Umgebungsvariablen konfigurieren**
|
||||
|
||||
Kopieren Sie `.env.example` zu `.env` und tragen Sie Ihre Credentials ein:
|
||||
```bash
|
||||
|
|
@ -83,6 +90,14 @@ settings:
|
|||
|
||||
### 2. Workflow ausführen
|
||||
|
||||
Aktivieren Sie zuerst die virtuelle Umgebung:
|
||||
|
||||
```bash
|
||||
source .venv/bin/activate
|
||||
```
|
||||
|
||||
Dann führen Sie das Workflow-Script aus:
|
||||
|
||||
```bash
|
||||
python workflow.py posts.yaml
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue