with SM_STATIC ENV variable
This commit is contained in:
parent
dd1e615d14
commit
31cd542929
@ -1,12 +1,15 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "net/http"
|
import (
|
||||||
|
"net/http"
|
||||||
|
"os"
|
||||||
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
http.Handle(
|
http.Handle(
|
||||||
"/",
|
"/",
|
||||||
http.FileServer(
|
http.FileServer(
|
||||||
http.Dir("."),
|
http.Dir(os.Getenv("SM_STATIC")),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
if err := http.ListenAndServe(":8000", nil); err != nil {
|
if err := http.ListenAndServe(":8000", nil); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user