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.
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.
发布评论
评论(2)
如果您正在开发应用程序,那么您确实应该在本地开发它。
您很快就会厌倦通过将更改上传到远程服务器来测试更改。
此外,如果你的朋友做出了改变,会发生什么,你怎么知道他已经做出了改变?您很快就会在代码中发生冲突,从而完全破坏您的协作。
因此,首先,您应该在本地安装 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.
如果可能的话,我总是建议使用
localhost
并与Dropbox
或任何类似的应用程序同步。否则,您可以尝试.htaccess
来阻止除您和您的朋友之外的任何人访问您的页面。If possible I'd always reccomend using
localhost
and syncing withDropbox
or any similar app. Otherwise you can try.htaccess
to prevent anyone other than you and your friend from accessing your page.