Skip to content
This repository was archived by the owner on May 15, 2020. It is now read-only.
This repository was archived by the owner on May 15, 2020. It is now read-only.

Ability to listen on multiple ports (80 + 3000) #548

@jakeonrails

Description

@jakeonrails

My team uses some sort of alias in their /etc/hosts or whatever to make http://oursite.dev:3000 go to localhost:3000. They manually start their servers. That's fine, but I'd prefer to use POW, and a simple http://oursite.dev.

The problem is that we have some hardcoded URLs in development, or external services, that want to go to http://oursite.dev:3000.

I would like for http://oursite.dev:3000 to work just like http://oursite.dev.

Basically, I want POW to listen to requests on port 3000 and port 80 and map them to the same Rack app.

I tried:

$ cd ~/.pow
$ echo 'http://oursite.dev:3000' > oursite
$ echo 'http://oursite.dev' > oursite

But.... that obviously doesn't work - as it's trying to forward requests to http://oursite.dev (as in: the POW domain represented by the textfile ~/.pow/oursite) to http://oursite.dev:3000 and there's nothing listening to that URL/port combination.

Does anyone know of any way to make this work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions