From 94ea1ab5aa47a65637cd948811becc6f8418928f Mon Sep 17 00:00:00 2001 From: Franco Manca <45926060+francomanca93@users.noreply.github.com> Date: Sat, 20 Aug 2022 22:08:44 +0200 Subject: [PATCH 1/2] use simplehttpserver with python3 --- .../cloud_shell_and_editor/simple-http-server-web-preview.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04-Account-Setup/cloud_shell_and_editor/simple-http-server-web-preview.txt b/04-Account-Setup/cloud_shell_and_editor/simple-http-server-web-preview.txt index d680eb7..6d614f1 100644 --- a/04-Account-Setup/cloud_shell_and_editor/simple-http-server-web-preview.txt +++ b/04-Account-Setup/cloud_shell_and_editor/simple-http-server-web-preview.txt @@ -5,7 +5,7 @@ Copy and paste this python code right into the Cloud Shell cd `mktemp -d` \ && echo '

Hello World

' >./index.html \ - && python -m SimpleHTTPServer 8080 + && python3 -m http.server 8080 Hit Enter Click on the "Web Preview" button From a7c9a83338e6f039a8f6fc759c7e6ea0411f2f5e Mon Sep 17 00:00:00 2001 From: Franco Manca <45926060+francomanca93@users.noreply.github.com> Date: Sat, 20 Aug 2022 22:18:00 +0200 Subject: [PATCH 2/2] command to install simplehttpserver in cloud shell terminal --- .../cloud_shell_and_editor/simple-http-server-web-preview.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/04-Account-Setup/cloud_shell_and_editor/simple-http-server-web-preview.txt b/04-Account-Setup/cloud_shell_and_editor/simple-http-server-web-preview.txt index 6d614f1..7529c1e 100644 --- a/04-Account-Setup/cloud_shell_and_editor/simple-http-server-web-preview.txt +++ b/04-Account-Setup/cloud_shell_and_editor/simple-http-server-web-preview.txt @@ -1,6 +1,8 @@ SimpleHTTPServer example Initialize Cloud Shell +Maybe you will have to install SimpleHTTPServer in your Cloud Shell terminal, use this command: +"python3 -m pip install simple_http_server" (https://pypi.org/project/simple-http-server/) Copy and paste this python code right into the Cloud Shell cd `mktemp -d` \