简体   繁体   English

如何将可在本地工作的Web服务(REST API,Java)上传到主机服务器

[英]How I upload my web Service(REST api, in java) that works locally to a host server

I just mad a web service(REST api) in java that works locally but I don't have any idea how I upload it to a host server. 我只是用Java在本地运行一个Web服务(REST api),但是我不知道如何将其上传到主机服务器。 I found some free host servers and got my server but I don't know how to upload my web service. 我找到了一些免费的主机服务器,并得到了服务器,但是我不知道如何上传Web服务。 can someone can give my some tips how to do it? 有人可以给我一些技巧吗? thanks :] 谢谢 :]

Seems not to be an Android question... but anyways :) 似乎不是Android问题...但是无论如何:)

You may need to dig a bit more on how to host applications in general. 通常,您可能需要更多地了解如何托管应用程序。 For people with not much knowledge on infrastructure or not willing to learn how to manage everything by themselves I suggest using services like Heroku. 对于基础设施知识不多或不愿意学习如何自行管理一切的人,我建议使用Heroku等服务。

For deploying your web service to heroku, you simply push the same way you push to a git server. 要将Web服务部署到heroku,只需按与推送到git服务器相同的方式推送即可。 If you no nothing about git , it is time to drop everything and go learn the basics. 如果您对git一无所知,那么现在该丢掉所有内容并学习基础知识了。

It has a free tier and start charging you once your needs grow over that tier: https://devcenter.heroku.com/categories/java 它有一个免费层,一旦您的需求在该层上增长,就可以开始向您收费: https : //devcenter.heroku.com/categories/java

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM