hamster

command module
v0.0.0-...-1889e68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 2 Imported by: 0

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

image

如何使用

usage

conf.yaml 配置文件详解

web:
  path: ./products  # 放静态文件的目录
  uploadDir: ./uploads # 上传到服务器的目录
server:
  port: :8080 # 监听的端口, listen port

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL