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

Fix access guides from mobile phone

Oliver Günther1cf2df780dc8
diff --git a/docs/development/running-tests/README.md b/docs/development/running-tests/README.md
index f3902b5042e..0eebfa67def 100644
--- a/docs/development/running-tests/README.md
+++ b/docs/development/running-tests/README.md
@@ -801,11 +801,10 @@ To easily change the RSpec examples being run without relaunching `watchexec` ev
* Sometimes you want to test things manually. Always remember: If you test something more than once, write an automated test for it.
* Assuming you do not have a version of Edge already installed on your computer, you can grab a VM with preinstalled IE's directly from [Microsoft](https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/)
+## Accessing a local OpenProject instance from a VM or mobile phone
-
-## Accessing a local OpenProject instance from a VM
-
-If you want to access the development server of OpenProject from a VM, you need to work around the CSP `localhost` restrictions.
+If you want to access the development server of OpenProject from a VM or your mobile phone, you need to work around the
+CSP `localhost` restrictions.
### Old way, fixed compilation
@@ -823,13 +822,14 @@ Now assuming networking is set up in your VM, you can access your app server on
### New way, with ng serve
-**The better way** when you want to develop against Edge is to set up your server to allow the CSP to the remote host.
+**The better way** when you want to develop against your local setup is to set up your server to allow the CSP to the
+remote host.
Assuming your openproject is served at `<your local ip>:3000` and your ng serve middleware is running at `<your local ip>:4200`,
you can access both from inside a VM with nat/bridged networking as follows:
```shell
# Start ng serve middleware binding to all interfaces
-npm run serve:public
+PROXY_HOSTNAME=<your local IP address> npm run serve
# Start your openproject server with the CLI proxy configuration set
OPENPROJECT_CLI_PROXY='http://<your local ip>:4200' ./bin/rails s -b 0.0.0.0 -p 3000
@@ -837,6 +837,8 @@ OPENPROJECT_CLI_PROXY='http://<your local ip>:4200' ./bin/rails s -b 0.0.0.0 -p
# Now access your server from http://<your local ip>:3000 with code reloading
```
+You might have to also update your host name setting `bundle exec rake setting:set[host_name=yourip]`.
+
## Legacy LDAP tests
OpenProject supports using LDAP for user authentications. To test LDAP