Update app.py
Browse files
app.py
CHANGED
|
@@ -22,13 +22,18 @@ print("Your Computer IP Address is:"+IPAddr)
|
|
| 22 |
url = "https://146.152.226.61"
|
| 23 |
|
| 24 |
# subprocess.run(["curl", "ipinfo.io"])
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
print(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
while True:
|
|
|
|
| 32 |
try:
|
| 33 |
resp2 = requests.get(url)
|
| 34 |
if resp2.status_code == 200:
|
|
|
|
| 22 |
url = "https://146.152.226.61"
|
| 23 |
|
| 24 |
# subprocess.run(["curl", "ipinfo.io"])
|
| 25 |
+
# test aws free server first
|
| 26 |
+
try:
|
| 27 |
+
resp1 = requests.get("http://3.231.107.102")
|
| 28 |
+
if resp1.status_code == 200:
|
| 29 |
+
print(resp1.status_code)
|
| 30 |
+
print(resp1.text)
|
| 31 |
+
print('Okay, I can connect to aws free test server.')
|
| 32 |
+
except:
|
| 33 |
+
print('The app is having issues! please check first!')
|
| 34 |
|
| 35 |
while True:
|
| 36 |
+
print('Begining access to the almighty Intel DevCloud.......')
|
| 37 |
try:
|
| 38 |
resp2 = requests.get(url)
|
| 39 |
if resp2.status_code == 200:
|