You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export GOPATH=/tmp/go
go get -d -v -u github.com/aerth/cosgo
cd /tmp/go/src/github.com/aerth/cosgo
make && sudo make install
unset GOPATH
This downloads and builds latest source. The sudo make install bit installs a default template and static directories to /usr/local/cosgo, and installs the binary to /usr/local/bin/
Running cosgo is easy. To get started, just type "cosgo -debug" and open up http://localhost:8080
There are a grip of flags, for customizing how cosgo runs.
How to enroll a (seconf) config file:
cosgo config
Here is an example for usage with fastcgi and using a config file:
cosgo -fastcgi -config
With no flags, cosgo shows the default template with a contact form. You can get fancy with it.