How to open localhost: 8080 in Cloud9 IDE?

I am developing an application engine project (golang) in the Cloud9 IDE. For desktop testing, I would go to localhost: 8080 in my desktop browser.

In Cloud9, I tried https://workspace-username.c9.io with $ PORT set to 8080, but somehow did not work on the appengine project. But it works for a regular web project.

How to test application with application engine in Cloud9 IDE? or

How to open http: // localhost: 8080 in Cloud9 IDE?

+4
source share
3 answers

, . , .

"goapp serve" "goapp serve -host 0.0.0.0"

Cloud9.

+1

Cloud9

, , 0.0.0.0 ($ IP) 8080 ($ PORT). https://-.c9users.io

8081 8082, https://-.c9users.io:8081 https://-.c9users.io:8082 .

, 8080, 8081 8082 Cloud9.

, , cloud9

+2

Google App Engine, Python,

dev_appserver.py app.yaml --host $IP --port $PORT --admin_host $IP --admin_port 8081

/ . Cloud 9 8081 8082, . Cloud9, .

$IP $PORT - Cloud 9 0.0.0.0 8080 .

Edit: gcloud ( 2018 ) IP- , , . - , --enable_host_checking=false.

dev_appserver.py app.yaml --enable_host_checking=false

There is an unanswered Cloud 9 post in this release ( link to c9 forum ). I assume you can add $ C9_HOSTNAME as the host, but this does not work for me.

Interactive console

If you want to use the interactive console, you need to assign an administrator port and also use the `--enable_console 'flag.

dev_appserver.py app.yaml --enable_host_checking=false --admin_port 8081 --enable_console=true

0
source

All Articles