大家往vps上上传代码有用git的吗?求助
 发布于 11 年前  作者 usherwong  7876 次预览  最后一次回复是 11 年前  来自  

想把本机的代码上传到vps上去,vps系统版本是ubuntu12.04。
之前用heroku的免费服务只需要:$ git remote add heroku git@heroku.com:yourAppName.git就可以了 现在升级到digitalocean的付费服务,vps上没有git地址啊,用http地址的话,要怎么写呢 $ git remote add http:111.111.1xx.1xx 这样吗?求指教

10 回复
usherwong

多谢 我去瞧瞧

alsotang

别听 1L 的。

既然你有 heroku 的使用经验,那么使用 dokku 可以让你的经验复用。

https://www.digitalocean.com/community/articles/how-to-use-the-digitalocean-dokku-application

jiyinyiyong

强大. 不过已经习惯用 Rsync 传了

kingapple

@jiyinyiyong 这货比git还强大么?

kingapple

@jiyinyiyong 客户机用的是windows么?赶脚rsync配置好麻烦啊。。。

jiyinyiyong

@kingapple 为什么问我啊… rsync 我是从网上抄的配置一直沿用, 没啥大问题, Mac 下的

gclsoft

你上传到git.oschina或github, 然后vps上取下来. 我连vps上的网站都是直接上传git的