Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
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` \
&& echo '<html><h1>Hello World</h1></html>' >./index.html \
&& python -m SimpleHTTPServer 8080
&& python3 -m http.server 8080

Hit Enter
Click on the "Web Preview" button
Expand Down