We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe68a10 commit ac16459Copy full SHA for ac16459
0x0E-web_stack_debugging_1/1-debugging_made_short
@@ -1,3 +1,5 @@
1
#!/usr/bin/env bash
2
-grep -q "listen\s\+80;" /etc/nginx/nginx.conf || echo "listen 80" | sudo tee -a /etc/nginx/nginx.conf >/dev/null
3
-sudo service nginx stop 2>&1 | grep -q "nginx stop/waiting"
+# trouble shooting why our server is not working
+sed -i "s/8080/80/g" /etc/nginx/sites-enabled/default
4
+service nginx restart
5
+truncate -s 0 /run/nginx.pid
0 commit comments