1
0
Fork 0
ynh-apps_tools/readme_generator/README.md

47 lines
821 B
Markdown
Raw Normal View History

# Auto-README generation
2024-03-07 00:33:28 +01:00
## Initial install
2024-03-07 00:33:28 +01:00
```bash
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```
2024-03-07 00:33:28 +01:00
## Use on a single app
2024-03-07 00:33:28 +01:00
```bash
source venv/bin/activate
./make_readme.py /path/to/app
```
Then the README.md in the app folder will be updated
2024-03-08 05:10:47 +01:00
## Run tests
```bash
source venv/bin/activate
pip install pytest
pytest tests
```
2024-03-07 00:33:28 +01:00
## Launch webhook service for auto update
Configure the webhook on github
Also need to allow the bot to push on all repos
2021-05-21 20:12:00 +02:00
Configure nginx to reverse proxy on port 8123 (or whichever port you set in the systemd config)
```bash
echo "github_webhook_secret" > github_webhook_secret
echo "the_bot_login" > login
echo "the_bot_token" > token
```
Add the webhook.service to systemd config, then start it:
```bash
systemctl start the_webhook_service
```