Updated port number, no need for admin privs.

This commit is contained in:
Josh Mudge 2019-11-14 23:20:19 -07:00
parent 62f8614607
commit 9f32b08beb
2 changed files with 6 additions and 1 deletions

View File

@ -149,5 +149,10 @@ You can find more information about how this works at the source: https://stacko
## WIP: Service ## WIP: Service
```
SCHTASKS /Create /RU SYSTEM /SC ONSTART /TN "A Go Web Server" /TR "C:\Users\Josh\.local\opt\serviceman\bin\serviceman.A Go Web Server.exe"
```
Service: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-service?view=powershell-6 Service: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-service?view=powershell-6
Credential seems to be what makes it admin or not: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-service?view=powershell-6 Credential seems to be what makes it admin or not: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-service?view=powershell-6

View File

@ -18,7 +18,7 @@ import (
func main() { func main() {
port := flag.String("p", "8100", "port to serve on") port := flag.String("p", "80", "port to serve on")
directory := flag.String("d", ".", "the directory of static file to host") directory := flag.String("d", ".", "the directory of static file to host")
flag.Parse() flag.Parse()