用于内部协作的 FTP 还是 HTTP?

发布于 2024-12-11 08:25:08 字数 1431 浏览 0 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

空心空情空意 2024-12-18 08:25:08

如果您正在开发应用程序,那么您确实应该在本地开发它。

您很快就会厌倦通过将更改上传到远程服务器来测试更改。

此外,如果你的朋友做出了改变,会发生什么,你怎么知道他已经做出了改变?您很快就会在代码中发生冲突,从而完全破坏您的协作。

因此,首先,您应该在本地安装 LAMP/MAMP/WAMP 堆栈。您应该在本地测试所有内容,并且不需要将其发布到服务器来测试。

然后,您应该使用某种版本控制来将您所做的任何更改添加到远程存储库。这意味着您和您的朋友可以彼此隔离地工作,然后将您自己的更改提交到存储库,然后您可以随时合并分支。

当您的应用程序完成后,您可以开始考虑通过将其添加到服务器来将其置于生产就绪状态。

在 GitHub.com 注册一个帐户,尽可能多地阅读有关版本控制如何工作的信息,因为如果您打算在任何事情上进行合作,您就需要全神贯注。

If you are developing an application, you should really be developing it locally.

You will rapidly tire of testing a change by uploading it to a remote server.

Additionally, what happens if your friend makes a change, how do you know that he has made that change? You will very quickly get collisions in code which totally ruin your collaboration.

So first of all, you should both install a LAMP/MAMP/WAMP stack locally. You should be testing everything locally, and you don't need to publish it to a server to test.

Then, you should be using some kind of version control in order to add any changes you make to a remote repository. This means that then you and your friend can work in isolation from each other, and then commit your own changes to a repository, and then you can merge the branches as you go.

When your application is then finished, you can then start to think about putting it into a production ready state by adding it to a server.

Sign up for an account at GitHub.com read as much as you can about how version control works, because if you intend to work together on anything you need to wrap your head around it.

一绘本一梦想 2024-12-18 08:25:08

如果可能的话,我总是建议使用 localhost 并与 Dropbox 或任何类似的应用程序同步。否则,您可以尝试 .htaccess 来阻止除您和您的朋友之外的任何人访问您的页面。

If possible I'd always reccomend using localhost and syncing with Dropbox or any similar app. Otherwise you can try .htaccess to prevent anyone other than you and your friend from accessing your page.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文