Dependences
Installation
Homebrew
git
postgresql
go
gopm
gogs
Build from dev source.
&&
Configuration
postgresql
Init postgresql
Start postgresql server
Or just run
gogs
custom/conf/app.ini
You can add git user or use currently logged in user.
If you want to add git user to run gogs.
See http://wiki.freegeek.org/index.php/Mac_OSX_adduser_script.
...
RUN_USER = git
[server]
SSH_PORT = 22
...
[database]
DB_TYPE = postgres
HOST =
...
[security]
INSTALL_LOCK = true
SECRET_KEY = YOU_MUST_CHANGE
...
Run gogs server
Or add launchd plist file to ~/Library/LaunchAgents/io.gogs.web.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>io.gogs.web</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-c</string>
<string>cd /Users/fundon/services/gogs; ./gogs web</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>WorkingDirectory</key>
<string>/Users/fundon/services/gogs</string>
</dict>
</plist>
SSH Remote
Setting SSH config /etc/sshd_config
Edit /etc/sshd_config
no
yes
yes
no
Start SSH Server
Open System Preferences > Sharing > Remote Login
Other SSH Articles
https://help.github.com/categories/ssh/
<3 Enjoy!
Other
- http://gogs.io/docs/intro/