Heroku替代 [英] Heroku alternative

查看:108
本文介绍了Heroku替代的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是开发新手,发现Heroku易于部署我的应用程序.

I´m new on development and found Heroku easy for deploying my app.

在遇到问题之前我一直很高兴:

I was happy until I got to problems:

  1. Heroku没有提供我需要白色IP列表才能访问API的IP地址.我使用名为Fixie的Heroku附加代理解决了此问题.如果每月少于500个请求,则免费.

  1. Heroku does not provide an IP adress which I need for a white IP list to access an API. I fixed this with a Heroku add-on proxy called Fixie. That is free if under 500 request per month.

Heroku免费计划在闲置30分钟后进入睡眠状态.我的应用程序需要在午夜发出API请求,由于该应用程序正在睡眠,因此这变得越来越困难.

The Heroku free plan sleeps after 30 min of inactivity. My app needs to makes API requests at midnight and this is getting difficult because the app is sleeping.

我当时想在Heroku上支付最近的廉价计划,这会使该应用程序无法进入睡眠状态.但是,尽管如此,我为什么不使用Heroku之外的另一个平台.

I was thinking to pay the nearest cheap plan on Heroku which make that the app does not sleep. But then I though why not use another platfrom than Heroku.

有人有一些建议吗?还有其他提供IP的平台,因此我不必担心每月超过500个请求吗?

Does anyone have some sugestions? Any other platform that give an IP so I don´t worry about crossing the 500 request per month?

我正在考虑AWS Elastic Beanstalk.但是正如我说的那样,我是新来的.

I was thinking of AWS Elastic Beanstalk. But as I said I´m new at this.

推荐答案

您可以使用DigitalOcean:最便宜的计划是每月5美元,您将获得一个具有其自己IP地址的Droplet.Droplet始终在运行(没有像Heroku这样的不活动超时).

You can use DigitalOcean: the cheapest plan is 5$ a month and you get a Droplet with its own IP address. The Droplet is always running (no inactivity timeout like Heroku).

主要区别是Heroku在底层基础结构之上提供了一个抽象层(您仅处理应用程序的部署和管理),而DigitalOcean提供了一个虚拟的盒子(例如Ubuntu),但是文档很棒,您可以轻松找到您需要什么(即安装Docker等.)

The main difference is Heroku provides an abstraction layer on top of the underlying infrastructure (you only deal with the application deployment and management) while DigitalOcean delivers a virtual box (ie Ubuntu), however the documentation is great and you can easily find what you need (ie install Docker, etc..)

这篇关于Heroku替代的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆