rodrigo-brito / gocity

:bar_chart: Code City metaphor for visualizing Go source code in 3D
https://go-city.github.io
MIT License
1.8k stars 139 forks source link

Localhost Redirect #25

Closed rgomids closed 5 years ago

rgomids commented 5 years ago

Description

When I start the server using: go run main.go server. The system starts normally and displays the URL: http://localhost:4000. The problem is that when accessing the URL the server loops trying to redirect the client to http://localhost:4000//. This even prevents the use of the open command, which when entering the display URL presents the same problem.

Steps to Problem

  1. Clone Repo;
  2. Use make to install dep;
  3. Run using go run main.go server;
  4. Use the URL provided;
  5. See server logs in terminal;

asciicast

rodrigo-brito commented 5 years ago

Hi @RafaelGomides, thank you for the report. I think it is related to static files redirect, I will investigate and report details later.

rodrigo-brito commented 5 years ago

Hi @RafaelGomides, can you try again? It seems a bug in packr and fixed by @bombsimon

rgomids commented 5 years ago

This problem is solved, but the client url still wrong.

Screenshot from 2019-10-01 17-54-28

localhost:4000//

rodrigo-brito commented 5 years ago

It's normal here, maybe a cache in your browser.