question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[RFC] host & port in config file

See original GitHub issue

Bug Report or Feature Request

- [ ] bug report -> please search issues before submitting
- [x] feature request

Desired functionality.

e2e overrides host. When you have a custom host the only way to change it is to use the command line and add the option host (same for the port, which is less disturbing).

This option should be configurable in the config file. Or at least taking care of the option of protractor.

Mention any other details that might be useful.

This idea comes from the fact we use docker-compose with a deported selenium (for front e2e and back e2e tests) that needs to work on the hostname and not localhost. This implies we need some config file where to specify the related hostname.

Please hit 👍 if you’re ok with the idea. I can handle it if you don’t want to do it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
filipesilvacommented, May 17, 2018

@stephaneeybert same thing, but inside the serve target:

"serve": {
  "builder": "@angular-devkit/build-angular:dev-server",
  "options": {
    "browserTarget": "project-name:build",
    "host": "localhost",
    "port": 4201
  },
3reactions
filipesilvacommented, Jan 16, 2019

@tiaguinho heya, thanks for reaching out about taking on this issue!

I’m looking at the source code for the e2e builder and actually think we support this already:

https://github.com/angular/angular-cli/blob/7d15c5dd0284ea2d8e8097172c5b14afeb37489e/packages/angular_devkit/build_angular/src/protractor/index.ts#L64-L66

You should be able to specify a host/port combo in the e2e target:

      "architect": {
        "e2e": {
          "builder": "@angular-devkit/build-angular:protractor",
          "options": {
            "protractorConfig": "e2e/protractor.conf.js",
            "devServerTarget": "latest-project:serve"
            "host": "localhost",
            "port": 1234
          },

So I don’t think there’s anything else to do here now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RFC 7151 - File Transfer Protocol HOST Command for ...
File Transfer Protocol HOST Command for Virtual Hosts (RFC 7151, March 2014. ... The client MUST NOT send the port number as part...
Read more >
RFC 7230: Hypertext Transfer Protocol (HTTP/1.1)
The delegated nature of registered names and IP addresses creates a federated namespace, based on control over the indicated host and port, whether...
Read more >
Port and RFC Destination.,..why these r required!!!!!!!!!!!
Log in to the R/3 system and go to transaction sm59. XI ( target host:inbomsap11 service no./ port:50000 ) should be present in...
Read more >
RFC 9110 - HTTP Semantics
A proxy is a message-forwarding agent that is chosen by the client, usually via local configuration rules, to receive requests for some type(s) ......
Read more >
oidentd - flexible, RFC 1413 compliant ident daemon with ...
-f, --forward=[PORT] Forward requests for hosts masquerading through the server oidentd is running on to the host that established the corresponding connection.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found