EvoBal/README.md

60 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2020-10-17 12:16:28 +02:00
# README
This README would normally document whatever steps are necessary to get the
application up and running.
Things you may want to cover:
* Ruby version
2021-01-26 23:32:37 +01:00
Testé principalement avec Ruby 3.0 mais probabement compatible avec des versions précédentes (2.7, 2.5…).
2020-10-17 12:16:28 +02:00
* System dependencies
2021-01-26 23:32:37 +01:00
Elasticsearch
Redis
une base SQL (SQLite, MySQL/MariaDB ou PostgreSQL).
Elinks en option (pour tranformer le HTML en texte brut)
2020-10-17 12:16:28 +02:00
* Configuration
* Database creation
2021-01-26 23:32:37 +01:00
```
rails db:migrate
```
2020-10-17 12:16:28 +02:00
* Database initialization
2021-01-26 23:32:37 +01:00
```
rails db:seed
```
Pour injecter les metadonnées issues de LDAP :
```
rails metadata_mappings:import
```
2021-01-30 21:59:25 +01:00
Pour injecter manuellement des mails dans le système (le serveur Rails doit tourner) :
2021-01-26 23:32:37 +01:00
```
for file in tmp/equipe-select/*.eml; do cat "${file}" | rails action_mailbox:ingress:postfix URL=http://0.0.0.0:3000/rails/action_mailbox/relay/inbound_emails INGRESS_PASSWORD=XXXXXXXX; done
```
2020-10-17 12:16:28 +02:00
* How to run the test suite
2021-01-26 23:32:37 +01:00
```
rails test
```
2020-10-17 12:16:28 +02:00
* Services (job queues, cache servers, search engines, etc.)
2021-01-26 23:32:37 +01:00
```
bundle exec sidekiq
```
2020-10-17 12:16:28 +02:00
* Deployment instructions
* ...