Skip to content

Commit

Permalink
Merge branch 'main' of github.com:labens-ufrn/suggestclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
tacianosilva committed Jul 12, 2024
2 parents 82841ed + dcb6b5c commit 14c847b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CREATE ROLE sc_user WITH
PASSWORD 'xxxxxx';
```

Crie os bancos de dados:
Crie o banco de dados com *Collate* `pt_BR` ([Configuração do Locale `pt_BR` no seu container](docs/dev.md)):
```sql
CREATE DATABASE scdb_dev
WITH
Expand Down
25 changes: 25 additions & 0 deletions docs/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,28 @@ and non-accented characters as equal. If you're using MySQL, a good collation wo
## Django Secret Key Generator

* https://djecrety.ir/

## Configuração do Locale no seu container

0) Entre na linha de comando do container Postgres:
```console
docker exec -it postgres-server bash
```
1) Identificando Locales instalados
```console
locale -a
```
2) Instalando novo Locale
```console
ls /usr/share/i18n/locales
localedef -i pt_BR -f UTF-8 pt_BR.UTF-8
```
3) Configurando Locale padrão
```console
sudo localectl set-locale LANG=pt_BR.UTF-8
```
Uma alternativa ao comando anterior é inserir manualmente o Locale no arquivo /etc/locale.conf adicionando a seguinte diretiva ao arquivo:
```console
LANG=pt_BR.UTF-8
```

0 comments on commit 14c847b

Please sign in to comment.