Update README
This commit is contained in:
33
README.md
33
README.md
@ -25,9 +25,7 @@ or [install directly on your computer](#install-directly-on-your-computer).
|
|||||||
### Docker
|
### Docker
|
||||||
|
|
||||||
- Open a terminal in the repository folder.
|
- Open a terminal in the repository folder.
|
||||||
- Windows 10: <kbd>Shift</kbd> + <kbd>right-click</kbd> in the folder and select `Open PowerShell window here`
|
- <kbd>Shift</kbd> + <kbd>right-click</kbd> in the folder and `Open PowerShell window here`
|
||||||
- Windows 11: <kbd>Shift</kbd> + <kbd>right-click</kbd> in the folder and Show more options
|
|
||||||
and `Open PowerShell window here`
|
|
||||||
- Run the Docker Compose file:
|
- Run the Docker Compose file:
|
||||||
- `docker-compose up`
|
- `docker-compose up`
|
||||||
- You can stop the bot with <kbd>Ctrl</kbd> + <kbd>c</kbd>.
|
- You can stop the bot with <kbd>Ctrl</kbd> + <kbd>c</kbd>.
|
||||||
@ -41,32 +39,25 @@ or [install directly on your computer](#install-directly-on-your-computer).
|
|||||||
|
|
||||||
### Install directly on your computer
|
### Install directly on your computer
|
||||||
|
|
||||||
This is not recommended if you don't have an init system (e.g., systemd)
|
|
||||||
|
|
||||||
- Install the latest version of needed software:
|
- Install the latest version of needed software:
|
||||||
- [Python](https://www.python.org/)
|
- [uv](https://docs.astral.sh/uv/#installation)
|
||||||
- You should use the latest version.
|
- `powershell -ExecutionPolicy ByPass -c "irm <https://astral.sh/uv/install.ps1> | iex"`
|
||||||
- You want to add Python to your PATH.
|
|
||||||
- Windows: Find `App execution aliases` and disable python.exe and python3.exe
|
|
||||||
- [Poetry](https://python-poetry.org/docs/master/#installation)
|
|
||||||
- Windows: You have to add `%appdata%\Python\Scripts` to your PATH for Poetry to work.
|
|
||||||
- Download the project from GitHub with Git or download
|
- Download the project from GitHub with Git or download
|
||||||
the [ZIP](https://github.com/TheLovinator1/discord-rss-bot/archive/refs/heads/master.zip).
|
the [ZIP](https://github.com/TheLovinator1/discord-rss-bot/archive/refs/heads/master.zip).
|
||||||
- If you want to update the bot, you can run `git pull` in the project folder or download the ZIP again.
|
- If you want to update the bot, you can run `git pull` in the project folder or download the ZIP again.
|
||||||
- Open a terminal in the repository folder.
|
- Open a terminal in the repository folder.
|
||||||
- Windows 10: <kbd>Shift</kbd> + <kbd>right-click</kbd> in the folder and select `Open PowerShell window here`
|
- <kbd>Shift</kbd> + <kbd>right-click</kbd> in the folder and `Open PowerShell window here`
|
||||||
- Windows 11: <kbd>Shift</kbd> + <kbd>right-click</kbd> in the folder and Show more options
|
|
||||||
and `Open PowerShell window here`
|
|
||||||
- Install requirements:
|
|
||||||
- Type `poetry install` into the PowerShell window. Make sure you are
|
|
||||||
in the repository folder where the [pyproject.toml](pyproject.toml) file is located.
|
|
||||||
- (You may have to restart your terminal if it can't find the `poetry` command. Also double check it is in
|
|
||||||
your PATH.)
|
|
||||||
- Start the bot:
|
- Start the bot:
|
||||||
- Type `poetry run python discord_rss_bot/main.py` into the PowerShell window.
|
- Type `uv run discord_rss_bot/main.py` into the PowerShell window.
|
||||||
- You can stop the bot with <kbd>Ctrl</kbd> + <kbd>c</kbd>.
|
- You can stop the bot with <kbd>Ctrl</kbd> + <kbd>c</kbd>.
|
||||||
|
- Bot is now running on port 3000.
|
||||||
|
- You should run this bot behind a reverse proxy like [Caddy](https://caddyserver.com/)
|
||||||
|
or [Nginx](https://www.nginx.com/) if you want to access it from the internet. Remember to add authentication.
|
||||||
|
- You can access the web interface at `http://localhost:3000/`.
|
||||||
|
|
||||||
Note: You will need to run `poetry install` again if [poetry.lock](poetry.lock) has been modified.
|
- To run automatically on boot:
|
||||||
|
- Use [Windows Task Scheduler](https://en.wikipedia.org/wiki/Windows_Task_Scheduler).
|
||||||
|
- Or add a shortcut to `%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup`.
|
||||||
|
|
||||||
## Contact
|
## Contact
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user