command
module
Version:
v0.0.0-...-1889e68
Opens a new window with list of versions in this module.
Published: Nov 22, 2019
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
hamster
axure 产品原型分享网站
产品介绍 (product introduction)
hamster 是一个简单的用于托管静态网站的工具, 目前我主要用来托管axure
的原型文件
hamster is a tool for serving static sites, especially for axure
generated sites
Build(如何构建)
export CGO_ENABLED=1
export GOOS=linux
export GOARCH=amd64
go build .
- 复制可执行文件
- 复制conf.yaml 和打包成的可执行文件到服务器上
- 创建 uploadDir的目录
- 创建path对应的目录
- 加可执行权限
chmod a+x hamster
- 运行
./hamster
示例:Demo

如何使用

conf.yaml 配置文件详解
web:
path: ./products # 放静态文件的目录
uploadDir: ./uploads # 上传到服务器的目录
server:
port: :8080 # 监听的端口, listen port
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.