Set up git commit hooks when running bin/setup_dev

with lefthook
This commit is contained in:
Christophe Bliard
2022-04-08 15:17:03 +02:00
parent 17fc32ee29
commit d6de01e192
+3 -2
View File
@@ -26,11 +26,12 @@ try 'bundle exec rake openproject:plugins:register_frontend >> log/setup_dev.log
echo "Exporting frontend locale files"
try 'bundle exec rake i18n:js:export >> log/setup_dev.log'
echo "Setting up git hooks"
try 'bundle exec lefthook install'
echo "---------------------------------------"
echo "Done. Now start the following services"
echo '- Rails server `RAILS_ENV=development ./bin/rails s`'
echo '- Angular CLI: `npm run serve`'
echo ""
echo 'You can also run `foreman start -f Procfile.dev` to run all the above on a single terminal.'