Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Making a shortcut for daily usage #21

Open
bdonov opened this issue Feb 22, 2023 · 0 comments
Open

Making a shortcut for daily usage #21

bdonov opened this issue Feb 22, 2023 · 0 comments

Comments

@bdonov
Copy link

bdonov commented Feb 22, 2023

This is likely just my limited understanding, but to operate the site successfully I have had to re-use "npm run start" every time. A solution to this would be appreciated. In the meantime, I have built a batch file for a quick shortcut. I do not want to see the cmd window. I cannot seem to automatically close the cmd/console window containing log that is produced by "npm run start" or make it run invisibly. I have only been able to minimize it. Traditional exit, timeout, taskkill and other cmd tools have been unsuccessful within my simple batch file code. I presume it is a piece of npm build that I haven't grasped yet with my inexperience. Suggestions or alternatives for this novice are appreciated.

@echo off
cd C:\Users\<%userprofile%>\Documents\GitHub\global-streaming-search
start "" npm run start
start http://localhost:8000
exit

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant