|
6 years ago | |
---|---|---|
assets | 6 years ago | |
consts | 6 years ago | |
database | 6 years ago | |
engine | 6 years ago | |
hosts | 6 years ago | |
logger | 6 years ago | |
modules | 6 years ago | |
utils | 6 years ago | |
vendor | 6 years ago | |
.gitignore | 6 years ago | |
LICENSE | 6 years ago | |
Makefile | 6 years ago | |
README.md | 6 years ago | |
go.mod | 6 years ago | |
go.sum | 6 years ago | |
main.go | 6 years ago | |
run.mac.sh | 6 years ago | |
run.unix.sh | 6 years ago | |
run.windows.bat | 6 years ago | |
session.go | 6 years ago |
Usage of ./fave:
-debug
debug mode with ignoring log files
-dir string
virtual hosts directory
-host string
server host (default "0.0.0.0")
-port int
server port (default 8080)
hosts
├── localhost # Main host directory
├──── config # Config directory
├────── mysql.json # MySQL config file
├──── htdocs # Public http files
├──── logs # Logs dir
├────── access.log # Access log file
├────── error.log # Error log file
├──── template # Engine templates
├────── 404.html # Template for 404 page
├────── footer.html # Footer
├────── header.html # Header
├────── index.html # Template for index page
├────── page.html # Template for any other pages
├────── sidebar.html # Can be included in templates
└──── tmp # Temporary dir for session files
Unlimited hosts count. Template variables in Wiki or here and here.