erikras / erikras/react-redux-universal-hot-example

How to use one port for Webpack AND api server for HEROKU?

Open
#1,211 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.1k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

Hi,

trying to deploy my build to heroku.
this repository uses two ports, one webpack and one for api.
but as i know, heroku just has one PORT option which gets self assigned with env port variable.

i cannot figure out how to combine the two services. how should i handle this big problem ?

```
https://myapp.herokuapp.com/ws/?EIO=3&transport=polling&t=LMr9Nni ->
app[web.1]: [0] proxy error { [Error: connect ECONNREFUSED 127.0.0.1:3030]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.