1

愚蠢的问题,因为我刚开始网络开发。考虑到我已经在 Netbeans(一个网站)的 Spring MVC 框架上构建了项目。我想让它活起来。

  1. What is the actual process of making it live considering the fact that I bought the domain and got the hosting? i.e. you upload project in the repository of hosting provider? (not sure if the question is correct, hence correct me if it's wrong)

  2. Can I somehow connect the repository of hosting provider with my Netbeans to update my web site directly from it? (like it works f.e. with svn repository)

4

1 回答 1

3

首先,它是您要托管/发布的 java 应用程序,因此您需要java 托管公司。

  1. 您需要域名,您可以购买一个,或者获得免费域名(有几种选择,您可以获得免费的 .tk 域名,一些主机还提供 1 年预付的免费域名)。

  2. 是的,您可以使用 Netbeans IDE 连接到主机的 SVN。但是部署过程取决于您将如何在主机端设置环境。SVN 是一个保存源代码的地方,而不是一个编译好的 Java 应用程序。您可以使用主机的 SVN 服务器,但您仍然需要编译 java 代码并构建可以部署在 java 服务器下的 war 文件。一些 Java 托管公司提供 Apache Maven,这可以帮助您解决问题。另一种解决方案是在本地构建战争,并将准备好的应用程序上传到您的 java 主机帐户(尝试使用 SFTP 或 SCP,大多数 java 托管公司都提供对您帐户的 SSH 访问,尽量避免使用 FTP,因为它非常不安全)。

于 2013-05-26T14:34:37.160 回答