How to Host a Struts/Spring Web application project on Website for beginners?

痞子三分冷 提交于 2019-12-12 04:18:04

问题


How to deploy java web project on website, how to host simple java web app online on website.

Any free web hosting websites? for beginners


回答1:


Heroku provide some free plane which is ideal for experimenting with cloud applications in a limited sandbox. heroku

If you have git account, and install heroku in local machine then use 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

And it's easy to deploy web app on it Here is a doc of heroku to deploye the java web app doc.

Also you can use AWS, it's provide one year free plane with limit of data.



来源:https://stackoverflow.com/questions/43076481/how-to-host-a-struts-spring-web-application-project-on-website-for-beginners

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!