From 7df6c3ac912feff634942edf76213e1a850a66d1 Mon Sep 17 00:00:00 2001 From: user670 <22617255+user670@users.noreply.github.com> Date: Sat, 14 Mar 2020 18:38:44 +0800 Subject: [PATCH] Create start_server_windows.bat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A `.bat` file for Windows users to automatically run server in current directory and then open a browser page of the server. A similar function should be able to achieve in Mac/Linux via a `.sh` file, but I don't have the environment to test and I don't know the syntax of said files. I hope some people can make that a thing... 一个用于Windows,可以自动在当前目录启动server并打开浏览器页面的 `.bat` 脚本。 类似的功能应该可以用 `.sh` 文件在Mac/Linux上实现,但是我既没有对应的环境用来测试,也不知道这种文件的语法。希望有人能做出来这个 `.sh` …… --- start_server_windows.bat | 1 + 1 file changed, 1 insertion(+) create mode 100644 start_server_windows.bat diff --git a/start_server_windows.bat b/start_server_windows.bat new file mode 100644 index 0000000..4e377e4 --- /dev/null +++ b/start_server_windows.bat @@ -0,0 +1 @@ +http-server -p 1234 -o