大家往vps上上传代码有用git的吗?求助
发布于 10 年前 作者 usherwong 6423 次浏览 最后一次编辑是 8 年前

想把本机的代码上传到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 回复

多谢 我去瞧瞧

别听 1L 的。

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

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

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

@jiyinyiyong 这货比git还强大么?

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

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

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

回到顶部