price fix
This commit is contained in:
parent
39638899a1
commit
f1e645987f
3
main.go
3
main.go
|
|
@ -6,6 +6,7 @@ import (
|
||||||
"github.com/joho/godotenv"
|
"github.com/joho/godotenv"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
@ -23,7 +24,7 @@ func main() {
|
||||||
|
|
||||||
route := mux.NewRouter()
|
route := mux.NewRouter()
|
||||||
route.HandleFunc("/init-importer", importer.Start)
|
route.HandleFunc("/init-importer", importer.Start)
|
||||||
err := http.ListenAndServe(":444", route)
|
err := http.ListenAndServe(os.Getenv("port"), route)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("error: ", err)
|
log.Fatal("error: ", err)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue