Merge pull request #6605 from opf/feature/add-script-npm-run-serve-public

Add separate script 'npm run serve-public' for developing cross device.
pull/6610/head
Oliver Günther 6 years ago committed by GitHub
commit 3373f13739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/development/running-tests.md
  2. 1
      package.json

@ -266,7 +266,7 @@ you can access both from inside a VM with nat/bridged networking as follows:
```bash
# Start ng serve middleware binding to all interfaces
ng serve --host 0.0.0.0
npm run serve-public
# Start your openproject server with the CLI proxy configuration set
OPENPROJECT_CLI_PROXY='<your local ip>:4200' ./bin/rails s -b 0.0.0.0 -p 3000

@ -6,6 +6,7 @@
"test": "cd frontend && npm test && cd ..",
"tslint_typechecks": "cd frontend && npm run tslint_typechecks && cd ..",
"serve": "cd frontend && npm run serve",
"serve-public": "cd frontend && ./node_modules/.bin/ng serve --host 0.0.0.0",
"legacy-webpack": "cd frontend && npm run legacy-webpack && cd ..",
"legacy-webpack-watch": "cd frontend && npm run legacy-webpack-watch"
},

Loading…
Cancel
Save