Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Set up git commit hooks when running bin/setup_dev

Christophe Bliardd6de01e19204
diff --git a/bin/setup_dev b/bin/setup_dev
index 48d5106f143..34bb9a48511 100755
--- a/bin/setup_dev
+++ b/bin/setup_dev
@@ -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.'
-
-