serve v0.1.1
Serve
Command line static HTTP server
Installation
Download from github:
$ serve_version="0.1.1"
$ serve_arch="x86_64"
$ curl -Lo /usr/local/bin/serve.gz "https://github.com/SuperPaintman/serve/releases/download/v${serve_version}/serve-${serve_version}_linux_${serve_arch}.gz"
$ gunzip /usr/local/bin/serve.gz
$ chmod +x /usr/local/bin/serve
From sources:
$ cd ~/Projects
$ git clone https://github.com/SuperPaintman/serve
$ cd ./serve
$ make
$ sudo make install
$ # or
$ sudo make reinstall
Usage
$ serve -h
Test
$ crystal spec
# or
$ make test
Shell tab auto-completion
To enable tab auto-completion for Serve, add one of the following lines to your ~/.zshrc
file.
# Zsh, ~/.zshrc
if [[ -z $commands[serve] ]]; then
echo 'serve is not installed, you should install it first'
else
eval "$(serve --completion=zsh)"
fi
Contributing
- Fork it (https://github.com/SuperPaintman/serve/fork)
- Create your feature branch (
git checkout -b feature/<feature_name>
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin feature/<feature_name>
) - Create a new Pull Request
Contributors
- SuperPaintman SuperPaintman - creator, maintainer
API
Changelog
License
Repository
serve
Owner
Statistic
- 23
- 2
- 0
- 2
- 0
- over 7 years ago
- November 13, 2016
License
MIT License
Links
Synced at
Thu, 21 Nov 2024 19:16:56 GMT
Languages