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

Please bring back ability to specify port # for glimpse atomspace viewer #68

Closed
eddiemonroe opened this issue Nov 9, 2016 · 4 comments
Assignees

Comments

@eddiemonroe
Copy link
Member

You used to be able to specify the port # the app would listen to with the startup command, e.g.,

./startServer.sh 9000   #for port 9000

But with the recent change in the startup command, it looks like you can no longer do this.

This is important especially because the default port for the glimpse app (8000) conflicts with a port used by the Hanson Robotics HEAD stack for it's web user interface (also 8000). Perhaps we should also change the default port for the atomspace viewer.

@eddiemonroe
Copy link
Member Author

The port number can be manually changed in index.js, but would be good to be able to do this via the startup command like before.

@amebel amebel assigned amebel and unassigned amebel Nov 10, 2016
@TScottJ
Copy link
Member

TScottJ commented Oct 9, 2017

Hey Eddie, we are adding a new version of the visualizer soon, called AtomSpaceExplorer, which is based off the Mozi_visualizer (which was based off glimpse). So we'll apply this issue to that one, and see if we can enable the port # feature.

@eddiemonroe
Copy link
Member Author

eddiemonroe commented Oct 10, 2017 via email

@sshermz
Copy link
Member

sshermz commented Oct 16, 2017

@eddiemonroe , the AtomSpace Explorer is available now in external-tools (https://github.com/opencog/external-tools/tree/master/AtomSpaceExplorer). You can override the default port 4200 as follows (this is copy/paste of an update to the AtomSpace Explorer README.md that I'll commit in my next set of updates):

npm start # Start the app on the default AngularJS port 4200.

npm start -- --port=[port-number] # Start the app at [port-number].
npm start -- --port=8080 # Example with port number 8080.

Alternatively, you can permanently change the default port by inserting the following to angular-cli.json, at the top of the "defaults" block:
"defaults": { # Existing line.
"serve": { # <- Inserted line.
"port": 8080 # <- Inserted line. Example port 8080. Set port number as desired.
}, # <- Inserted line.
"styleExt": "css", # Existing line.

@TScottJ TScottJ closed this as completed Oct 17, 2017
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