我是用二進位原始碼安裝的。
官網的文檔"配置與運行"中"運行 Gogs 服務"寫到:
那麼問題來了:這兩份文件有什麼差別?
部署模式中有兩種啟動方法:
這兩種中:第一種關閉終端後就不能訪問本地伺服器了,那麼相反的 Supervisor 就能保證終端關閉後還能運作嗎?
我嘗試使用Supervisor
部署伺服器,但是彈出瞭如下的錯誤。一個下午一直解決不了。希望大家能知道。
我已經用
sudo pip install Supervisor
安裝好了Supervisor。
我不知道為什麼我現在輸入這個指令會出現如下錯誤:(難道是說我已經安裝了?)
The directory '/Users/lifeng720/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/lifeng720/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied (use --upgrade to upgrade): Supervisor in /Library/Python/2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): meld3>=0.6.5 in /Library/Python/2.7/site-packages (from Supervisor)
我是第2次輸入sudo pip install Supervisor
才彈出上面的錯誤,所以我感覺應該是安裝上去了。於是我繼續:
1 我先cd 到了gogs的原始碼目錄。用官網的./scripts/gogs_supervisord.sh start
指令準備開啟服務的,但是彈出了下面的錯誤
ln: /usr/bin/gogs_start: File exists
starting
Traceback (most recent call last):
File "/usr/local/bin/supervisord", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: meld3>=0.6.5
started
雖然最後提示開啟,但是我用:localhost:3000,還是不能訪問(直接寫IP也不行)
這個錯誤我百度了下:
好像是因為丟失了,start.h
但是我翻了上一個版本,也沒有這個檔案
該怎麼辦?
順便問下有沒有跨平台支援的版本控制系統(累死gogs)?
另外問下,公司的專案一般託管在網路上的私人託管服務中還是本地的託管
這個社區的人水平普遍偏低麼。 。 。
讓gogs後台運作
關閉後就可以繼續訪問了