Garlov / AutoRhythm

Open source rhythm game with auto generated note maps.
https://garlov.itch.io/auto-rhythm
MIT License
22 stars 6 forks source link

Cannot be ran locally in a specific browser, nor in a private window (or i could not, with these steps) #39

Open duritia opened 3 years ago

duritia commented 3 years ago

The default browser i use is a very limited one, for a personal choice of limiting what sites can do when they are opened from limited choices given to me. Some possibilites: context menus that open a site, instead of giving the link in a copiable way; software help that open a site, instead of showing local help files, as i expect (and they do not tell this is what will be done); development testing with clean and specific browser settings; development testing with clean and specific browser version.

Searching a solution for this problem, i found the discussion https://stackoverflow.com/questions/51706882/create-react-app-how-do-i-npm-start-with-a-specific-browser , where is suggested to use the environment variable BROWSER to the command npm start. This should solve my problem, as long as it also accepts an argument to this chosen browser. But to test, i first tried only the name of a browser that is not my default. It did not work!

To be specific, in this issue, suppose we:

  1. Have Firefox and Vivaldi browsers installed.
  2. Firefox is the default browser for the current user.
  3. We download AutoRhythm, extract in a temporary folder.
  4. Open a terminal, and change to directory of step 3.
  5. Run the command `npm install'.
  6. One of the options: 6.1. run BROWSER=vivaldi; npm start 6.2 run export BROWSER=vivaldi; npm start
  7. For both options, what will be started with AutoRhythm is a new Firefox tab.
Garlov commented 3 years ago

Hi, this sounds way to specific for us to look at. The BROWSER parameter for npm start might also be specific to CRA, or the package they are using for opening the project in a browser after build. You'll probably have to take a look at the docs for webpack-dev-server to solve this. You can just go to localhost:3000 in your chosen browser as well, since npm start just hosts a server locally on that port. The browser it automatically opens it up in doesn't really matter, it's just so you doesn't need to write localhost:3000 into your browser manually.

KevDevCaita commented 1 year ago

theres no json file