mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
Configure hocuspocus to run on localhost!
This commit is contained in:
@@ -44,6 +44,10 @@ PORT=3000
|
||||
FE_HOST=localhost
|
||||
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.)
|
||||
OPENPROJECT_DOCKER_DEV_TLD=local
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
web: bundle exec rails server
|
||||
angular: npm run serve
|
||||
worker: bundle exec good_job start
|
||||
hocuspocus: cd extensions/op-blocknote-hocuspocus && SECRET=$OPENPROJECT_COLLABORATIVE__EDITING__HOCUSPOCUS__SECRET npm run dev
|
||||
|
||||
@@ -21,6 +21,9 @@ try 'echo "{}" > config/frontend_assets.manifest.json'
|
||||
echo "Installing node_modules ... "
|
||||
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"
|
||||
try 'bundle exec rails openproject:plugins:register_frontend assets:export_locales >> log/setup_dev.log'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user