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

Print the actual IP address when starting web server #38

Closed
psyhtest opened this issue Sep 21, 2015 · 4 comments
Closed

Print the actual IP address when starting web server #38

psyhtest opened this issue Sep 21, 2015 · 4 comments
Assignees
Labels

Comments

@psyhtest
Copy link
Collaborator

I have successfully used:

ck setup kernel --wfe

to customize the IP address of the web server.

While I can now access the server at this IP address, when it starts it still prints:

Starting CK web service on localhost:3344 ...

which is mildly confusing...

@psyhtest psyhtest added the bug label Sep 21, 2015
@gfursin
Copy link
Contributor

gfursin commented Sep 21, 2015

I think I fixed that in the latest commit. May I ask you to check it, please?
Thanks!

@psyhtest
Copy link
Collaborator Author

Unfortunately, I still have the same problem:

$ ck setup kernel --wfe
=======================================================================
Loading current configuration ...
=======================================================================
*** Web front end control (through CK web server or third-party web server and CK php connector) ***

Current web front-end URL prefix: http://192.168.1.66:3344/web?
Current web front-end template:   default

Enter new web front-end URL prefix (Enter to keep previous): http://192.168.1.73:3344/web?    
Enter new web front-end template (Enter to keep previous): 
=======================================================================
Writing local configuration (directly) ...

Configuration successfully recorded to /home/dvdt/CK/local/kernel/default/.cm/meta.json ...
$ ck start web
For now we can only start server indefinitely
but we should add a proper start/stop/resume support at some point ...

Starting CK web service on localhost:3344 ...

@gfursin
Copy link
Contributor

gfursin commented Oct 27, 2015

I think I fixed it now. Furthermore, if you add --port, you do not need to setup kernel - CK will automatically detect it, i.e.

ck start web --port=3333
firefox localhost:3333
This should work!

@psyhtest
Copy link
Collaborator Author

It does now - thanks! It's more useful for me to specify --host in the local network but this can be done too:

$ ck start web --host=192.168.1.73 --port=3322
For now we can only start server indefinitely
but we should add a proper start/stop/resume support at some point ...

Starting CK web service on 192.168.1.73:3322 ...

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

No branches or pull requests

2 participants