https://github.com/hiroakis/s
s command runs http server on current dir. sってコマンドでカレントをdocrootとしたhttp鯖が立ち上がる。
https://github.com/hiroakis/s
Last synced: about 1 year ago
JSON representation
s command runs http server on current dir. sってコマンドでカレントをdocrootとしたhttp鯖が立ち上がる。
- Host: GitHub
- URL: https://github.com/hiroakis/s
- Owner: hiroakis
- Created: 2016-07-21T12:27:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-12T09:39:04.000Z (over 8 years ago)
- Last Synced: 2025-02-14T16:39:44.342Z (over 1 year ago)
- Language: Go
- Size: 8.93 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# s
`s` command runs HTTP Server which serves static files on current directory.
`s` ってコマンドでそのディレクトリを document root としたhttpサーバが立ち上がる
## Installation インストール
```
go get github.com/hiroakis/s
```
or か
```
wget https://raw.githubusercontent.com/hiroakis/s/master/s_darwin_396
wget https://raw.githubusercontent.com/hiroakis/s/master/s_linux_386
wget https://raw.githubusercontent.com/hiroakis/s/master/s_windows_386.exe
```
## Run 実行
Just run `s`
```
s
```
## Option オプション
```
-h Listen IP address. Default: 0.0.0.0 リスンIP。デフォは"0.0.0.0"
-p Listen Port. Default: 8000 リスンポート。デフォは"8000"
-d The DocumentRoot. Default "." ドキュメントルートの指定。デフォは"."
```
## Motivation モチベーション
```
python -m SimpleHTTPServer
```
とか
```
python -m http.server
```
とか
```
ruby -run -e httpd .
```
are pain for me and I forget sometime.
とかやるのすら面倒だったってのが。
## License
MIT