Configure hocuspocus to run on localhost!

This commit is contained in:
Kabiru Mwenja
2026-02-12 21:18:28 +03:00
parent 90a0690f37
commit 1a75ca8116
3 changed files with 8 additions and 0 deletions
+4
View File
@@ -44,6 +44,10 @@ PORT=3000
FE_HOST=localhost FE_HOST=localhost
FE_PORT=4200 FE_PORT=4200
# Hocuspocus (collaborative editing) - local development
OPENPROJECT_COLLABORATIVE__EDITING__HOCUSPOCUS__URL=ws://localhost:1234
OPENPROJECT_COLLABORATIVE__EDITING__HOCUSPOCUS__SECRET=secret12345
# Default TLD for docker dev stack (e.g. when set to "local", services will be openproject.local, nextcloud.local, etc.) # Default TLD for docker dev stack (e.g. when set to "local", services will be openproject.local, nextcloud.local, etc.)
OPENPROJECT_DOCKER_DEV_TLD=local OPENPROJECT_DOCKER_DEV_TLD=local
+1
View File
@@ -1,3 +1,4 @@
web: bundle exec rails server web: bundle exec rails server
angular: npm run serve angular: npm run serve
worker: bundle exec good_job start worker: bundle exec good_job start
hocuspocus: cd extensions/op-blocknote-hocuspocus && SECRET=$OPENPROJECT_COLLABORATIVE__EDITING__HOCUSPOCUS__SECRET npm run dev
+3
View File
@@ -21,6 +21,9 @@ try 'echo "{}" > config/frontend_assets.manifest.json'
echo "Installing node_modules ... " echo "Installing node_modules ... "
try '(cd frontend && npm ci) >> log/setup_dev.log' try '(cd frontend && npm ci) >> log/setup_dev.log'
echo "Installing hocuspocus dependencies..."
try '(cd extensions/op-blocknote-hocuspocus && npm ci) >> log/setup_dev.log'
echo "Linking plugin modules and exporting frontend locale files" echo "Linking plugin modules and exporting frontend locale files"
try 'bundle exec rails openproject:plugins:register_frontend assets:export_locales >> log/setup_dev.log' try 'bundle exec rails openproject:plugins:register_frontend assets:export_locales >> log/setup_dev.log'