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

Do you know how to change http port ? #73

Closed
MagnusDot opened this issue Jun 13, 2019 · 5 comments
Closed

Do you know how to change http port ? #73

MagnusDot opened this issue Jun 13, 2019 · 5 comments
Labels
question Further information is requested

Comments

@MagnusDot
Copy link

I want to change the port ( 3000 actually ) to onother one, do you know can I change it ?

@marzavec marzavec added the question Further information is requested label Jun 13, 2019
@marzavec
Copy link
Member

Step 1, change on the client:
https://github.com/hack-chat/main/blob/master/client/client.js#L221

Step 2, change within your config, sourceDir/config/config.json, adjust the line "websocketPort": 6060 to match the change in client.

Step 3, restart server application.

@MagnusDot
Copy link
Author

it's not what i want exacly i want to change the web interface and not the api

@marzavec
Copy link
Member

marzavec commented Jun 13, 2019

It sounds like you are using node's http-server package to serve the client? This isn't needed and actually not recommended. A normal http server (I suggest nginx) may be used to serve the client html/js instead ( Deploy.md ).

However, if you do want to change the port that node is using with http-server, adjust the line:
https://github.com/hack-chat/main/blob/master/clientSource/package.json#L15

And restart the app.

@MagnusDot
Copy link
Author

thx a lot =) 👍

@marzavec
Copy link
Member

Anytime. I've updated my answer above with a link to the live deployment outline as well

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

No branches or pull requests

2 participants