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

Get demo working on Windows #130

Merged
merged 5 commits into from
Jun 23, 2016
Merged

Get demo working on Windows #130

merged 5 commits into from
Jun 23, 2016

Conversation

Tyriar
Copy link
Member

@Tyriar Tyriar commented Jun 13, 2016

  • Removed bin bash scripts in favor of npm scripts so they work
    cross-platform
  • Moved to use 127.0.0.1 as 0.0.0.0 doesn't work on Windows

Note that this doesn't work with the current pty.js as it doesn't build on
Windows.


The last step in getting it working for Windows was changing pty.js to point at https://github.com/Tyriar/pty.js/tarball/prebuilt - this may break compatibility with older versions of node though, I'm not certain.

image

- Removed bin bash scripts in favor of npm scripts so they work
  cross-platform
- Moved to use 127.0.0.1 as 0.0.0.0 doesn't work on Windows

Note that this doesn't work with the current pty.js as it doesn't build on
Windows.
@parisk parisk added the on-hold label Jun 14, 2016
@parisk
Copy link
Contributor

parisk commented Jun 14, 2016

Putting this on hold, until some important issues are resolved: #132.

@Tyriar
Copy link
Member Author

Tyriar commented Jun 16, 2016

Merged in master and resolved conflicts, this is unblocked now

@@ -46,7 +46,7 @@ app.ws('/bash', function(ws, req) {
});

var port = process.env.PORT || 3000,
host = '0.0.0.0';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep this to 0.0.0.0 to make sure this works for VMs/remote servers?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows would let me go to 127.0.0.1 in a browser when host="0.0.0.0", it just wouldn't let me go to 0.0.0.0. I mainly just wanted the message and readme to work without issues on Windows for this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about detecting platform and setting this to 127.0.0.1 if on windows?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doable, ideally we would only have a single URL in the readme though.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's why I left README intact. In order to give more examples of what I mean, if we run this inside a Docker container it won't be accessible.

That's why I prefer the 0.0.0.0 bind. If we detect the platform though it would be fine to listen to localhost IMO, Windows systems will work fine in localhost, since it's most probably a personal computer.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, let me know if this is what you had in mind.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @Tyriar !

@akalipetis
Copy link
Contributor

LGTM, just a minor comment and I believe we can merge this. Thanks @Tyriar !

@akalipetis akalipetis merged commit 8bf8187 into xtermjs:master Jun 23, 2016
@Tyriar Tyriar deleted the windows_demo branch February 3, 2017 05:04
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

Successfully merging this pull request may close these issues.

3 participants