argos/docs/installation/postgresql.md
2024-03-25 13:56:45 +01:00

30 lines
601 B
Markdown

# Use with PostgreSQL
If you intend to use argos with Postgresql, which is recommended for production, you can install it with the following commands:
```bash
pip install -e ".[postgres]"
```
Here are a few steps for you to install PostgreSQL on your system:
## Debian
```bash
sudo apt install postgresql
```
```bash
sudo -u postgres createuser -P argos
sudo -u postgres createdb -O argos argos
sudo -u postgres psql -c "ALTER DATABASE argos SET TIMEZONE TO 'UTC';"
```
## MacOS
```bash
brew install postgresql@14
brew services start postgresql@14
createuser argos
createdb argos -O argos
```