【问题标题】:How to Host a Struts/Spring Web application project on Website for beginners?如何在网站上为初学者托管一个 Struts/Spring Web 应用程序项目?
【发布时间】:2017-03-28 17:47:17
【问题描述】:

如何在网站上部署 java web 项目,如何在网站上在线托管简单的 java web 应用程序。

任何免费的虚拟主机网站?适合初学者

【问题讨论】:

    标签: java web-hosting


    【解决方案1】:

    Heroku 提供了一些免费的平面,非常适合在有限的沙盒中试验云应用程序。 heroku

    如果你有 git 账号,并在本地机器上安装 heroku 然后使用 follow

    commend:
     git add .
    
     git commit -m "Added a Procfile."
    
     heroku login
    Enter your Heroku credentials.
    ...
    
     heroku create
    Creating arcane-lowlands-8408... done, stack is cedar-14
    http://arcane-lowlands-8408.herokuapp.com/ | git@heroku.com:arcane-lowlands-8408.git
    Git remote heroku added
    
     git push heroku master
    ...
    -----> Java app detected
    ...
    -----> Launching... done
           http://arcane-lowlands-8408.herokuapp.com deployed to Heroku
    

    而且很容易在上面部署网络应用程序 Here 是部署 java web 应用程序文档的 heroku 文档。

    你也可以使用AWS,它提供一年免费飞机,有数据限制。

    【讨论】:

    • 谢谢,确实有帮助:)
    • @HemanthPeela 如果有帮助,请接受答案,这样可能对其他人有帮助。谢谢!乐于助人:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-18
    相关资源
    最近更新 更多