Rakefile: add task to create initial users
This commit is contained in:
parent
f2ebf48564
commit
b0c5d8ec66
2 changed files with 23 additions and 9 deletions
11
README.md
11
README.md
|
@ -81,16 +81,9 @@ Dans le fichier `config/intializers/token.rb`, ajouter
|
|||
|
||||
*Note : les valeurs pour ces paramètres sont renseignées dans le Keepass*
|
||||
|
||||
## Création des comptes initiaux
|
||||
|
||||
bin/rails console
|
||||
> email = "<votre email>"
|
||||
> password = "<votre mot de passe>"
|
||||
> Administration.create(email: email, password: password)
|
||||
> Administrateur.create(email: email, password: password)
|
||||
> Gestionnaire.create(email: email, password: password)
|
||||
> User.create(email: email, password: password)
|
||||
## Création d'un compte de test initial en local
|
||||
|
||||
bin/rake create_test_account -- --email=EMAIL --password=PASSWORD
|
||||
|
||||
## Lancement de l'application
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue