1 Star 0 Fork 0

eisneim / gortfolio

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
server.go 648 Bytes
一键复制 编辑 原始数据 按行查看 历史
eisneim 提交于 2015-02-17 16:33 . [change] add config json file;
/*!
* gortfolio v0.0.1
* http://eisneim.github.io/gortfolio
*
* the goal is to create an awesome & easy to use portfolio CMS for
* Designers / Artists / Developers
* using: golang as backend , angularJS as frontend MV* framework , mongodb as database
*
* Copyright (c) 2015 eisneim.com
* License: MIT
*/
package main
import (
"flag"
"github.com/eisneim/gortfolio/gortfolio"
)
func main() {
// command line flags, flag Prase() returnd with pointers
port := flag.Int("port", gortfolio.Config.Port, "port to serve on")
dir := flag.String("dir", "public/", "directory of static files ")
flag.Parse()
gortfolio.Serve(*port, *dir)
}
JavaScript
1
https://gitee.com/eisneim/gortfolio.git
git@gitee.com:eisneim/gortfolio.git
eisneim
gortfolio
gortfolio
master

搜索帮助