Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to deploy to Heroku #12

Open
averykohhc opened this issue Jul 12, 2018 · 3 comments
Open

Unable to deploy to Heroku #12

averykohhc opened this issue Jul 12, 2018 · 3 comments

Comments

@averykohhc
Copy link

Hi,

I've tried to deploy to heroku but it isn't working. I am getting this polling error below in the console and do not know how to change the 8010 to a port that works.

polling-xhr.js:264 GET http://localhost:8010/socket.io/?EIO=3&transport=polling&t=MIEd4F3 0 ()

I tried replacing all the 8010 ports to be the same as the one heroku has assigned in the www file process.env.PORT but it gives a different error saying that the port is already in use. Please let me know what I need to change in both client and server code for it to be deployed to heroku.

I really appreciate your time and help!

@saileshrepo
Copy link

I am able to manage this issue by changing the convo.js file and changing the localhost to the Heroku domain. but still, I am not able to see the Heroku thing working.
same code (localhost), is working fine but when using Heroku, it is stuck. Able to deploy but not able to receive response from Dialogflow

@danpillay87
Copy link

any resolution on this to either of you? having same issues my side with heroku deploy workflow from github

@danicrg
Copy link

danicrg commented May 19, 2019

var socket = io.connect(window.location.hostname + ':8010'); should be the thing. This line uses the domain assigned by Heroku.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants