39 lines
598 B
Markdown
39 lines
598 B
Markdown
# netig.net
|
|
|
|
## TODO
|
|
|
|
* limiter les soumissions à /contact/send
|
|
|
|
## Développement
|
|
|
|
Installer les dépendances :
|
|
|
|
```sh
|
|
bundle install
|
|
```
|
|
|
|
Créer un fichier `.env` à la racine du projet :
|
|
|
|
```dotenv
|
|
SESSION_SECRET=...
|
|
SMTP_PASSWORD=...
|
|
```
|
|
|
|
Générer `SESSION_SECRET` avec `openssl rand -hex 64` et conserver la valeur dans `.env`.
|
|
|
|
Démarrer le serveur de développement :
|
|
|
|
```sh
|
|
bundle exec puma
|
|
```
|
|
|
|
Ou ouvrir un shell interactif :
|
|
|
|
```sh
|
|
bundle exec irb -r dotenv/load -r ./netig.rb
|
|
```
|
|
|
|
## Production
|
|
|
|
Docker Compose fournit les variables avec `env_file` et définit `RACK_ENV=production`.
|