I am trying to set the html html ip server on dotCloud. The IPython server uses a tornado with websockets (and other internal messages using zeromq on tcp sockets).
Where is my dotcloud.yml :
www: type: custom buildscript: builder ports: nbserver: tcp
I follow the custom port recipes listed here here and here . As the logs show, I start the tornado server at 127.0.0.1:$DOTCLOUD_WWW_NBSERVER_PORT :
/var/log/supervisor/www.log
[NotebookApp] IPython Notebook runs at: http://127.0.0.1{5928/
[NotebookApp] Use Control-C to stop this server and close all cores.
But when I click, CLI dotCloud tells me:
A WARNING. The service starts at startup or listens on the wrong port. He was unable to respond to the nbserver port (42801) for 30 seconds. Check application logs.
...
Deployment completed. Your application is available at the following URLs URL not found. This is normal, it means that your application does not include a web service. "
There is nothing at my-app.dotcloud.com or my-app.dotcloud.com:DOTCLOUD_WWW_NBSERVER_PORT
What am I missing here? Thank you for your help.
UPDATE
The problem is resolved. A regular HTTP port works fine with websites, so custom port recipes are not required. This is my new dotcloud.yml :
www: type: custom buildscript: builder ports: web: http
works with the following in ipython_notebook_config.py :
c.NotebookApp.ip = '*'
This makes the tornado web server listen on all IP addresses.
WARNING: first set up security and authentication!
For more information, see Starting a public laptop server .