Merge pull request #2090 from betagouv/binstubs
README: always use binstubs
This commit is contained in:
commit
f2ebf48564
1 changed files with 12 additions and 12 deletions
24
README.md
24
README.md
|
@ -49,7 +49,7 @@ Afin de générer la BDD de l'application, il est nécessaire d'exécuter les co
|
||||||
bin/rails db:create db:schema:load
|
bin/rails db:create db:schema:load
|
||||||
|
|
||||||
# Migrate the development database and the test database
|
# Migrate the development database and the test database
|
||||||
rails db:migrate
|
bin/rails db:migrate
|
||||||
|
|
||||||
## Bouchonnage de l’authentification
|
## Bouchonnage de l’authentification
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ Dans le fichier `config/intializers/token.rb`, ajouter
|
||||||
|
|
||||||
## Création des comptes initiaux
|
## Création des comptes initiaux
|
||||||
|
|
||||||
rails c
|
bin/rails console
|
||||||
> email = "<votre email>"
|
> email = "<votre email>"
|
||||||
> password = "<votre mot de passe>"
|
> password = "<votre mot de passe>"
|
||||||
> Administration.create(email: email, password: password)
|
> Administration.create(email: email, password: password)
|
||||||
|
@ -110,18 +110,18 @@ Pour exécuter les tests de l'application, plusieurs possibilités :
|
||||||
|
|
||||||
- Lancer tous les tests
|
- Lancer tous les tests
|
||||||
|
|
||||||
rake spec
|
bin/rake spec
|
||||||
rspec
|
bin/rspec
|
||||||
|
|
||||||
- Lancer un test en particulier
|
- Lancer un test en particulier
|
||||||
|
|
||||||
rake spec SPEC=file_path/file_name_spec.rb:line_number
|
bin/rake spec SPEC=file_path/file_name_spec.rb:line_number
|
||||||
rspec file_path/file_name_spec.rb:line_number
|
bin/rspec file_path/file_name_spec.rb:line_number
|
||||||
|
|
||||||
- Lancer tous les tests d'un fichier
|
- Lancer tous les tests d'un fichier
|
||||||
|
|
||||||
rake spec SPEC=file_path/file_name_spec.rb
|
bin/rake spec SPEC=file_path/file_name_spec.rb
|
||||||
rspec file_path/file_name_spec.rb
|
bin/rspec file_path/file_name_spec.rb
|
||||||
|
|
||||||
## Debug
|
## Debug
|
||||||
|
|
||||||
|
@ -145,18 +145,18 @@ Une fois `overmind` lancé, et un breakpoint `byebug` inséré dans le code, il
|
||||||
## Régénérer les binstubs
|
## Régénérer les binstubs
|
||||||
|
|
||||||
bundle binstub railties --force
|
bundle binstub railties --force
|
||||||
rake rails:update:bin
|
bin/rake rails:update:bin
|
||||||
|
|
||||||
## Tâches Super Admin
|
## Tâches Super Admin
|
||||||
|
|
||||||
- ajouter un compte super admin :
|
- ajouter un compte super admin :
|
||||||
`bundle exec rake admin:create_admin[email-du-compte-github@exemple.com]`
|
`bin/rake admin:create_admin[email-du-compte-github@exemple.com]`
|
||||||
|
|
||||||
- lister les comptes super admin :
|
- lister les comptes super admin :
|
||||||
`bundle exec rake admin:list`
|
`bin/rake admin:list`
|
||||||
|
|
||||||
- supprimer un compte super admin :
|
- supprimer un compte super admin :
|
||||||
`bundle exec rake admin:delete_admin[email-du-compte-github@exemple.com]`
|
`bin/rake admin:delete_admin[email-du-compte-github@exemple.com]`
|
||||||
|
|
||||||
## Compatibilité navigateurs
|
## Compatibilité navigateurs
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue