Skip to content

Commit ac16459

Browse files
Make it sweet and short
1 parent fe68a10 commit ac16459

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
#!/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"
2+
# trouble shooting why our server is not working
3+
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

Comments
 (0)