Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I deploy a application that requires static IP to Heroku?

I have a rails application hosted on Heroku that I need to integrate with 3rd party payments provider. The payment provider requires that my application will have a static IP for incoming and outgoing HTTPS requests. I want to deploy a proxy on a Linode VPS so it can relay the information as a proxy. Relaying the request to the service provider seems easy, I just use their IP.

Can I relay requests coming from the service provider to the heroku application? Can I relay the request using a URL (https://myapp.herokuapp.com) ?

What is the recommended proxy server to use?

like image 867
Gady Avatar asked Jun 28 '12 05:06

Gady


People also ask

How to deploy a static web application to Heroku?

Deploying a Static Web Application to Heroku 1 Create a GitHub Repository and upload your application files To learn how to create a new repository, click here. ... 2 Create an account on Heroku Visit Heroku and Sign up for a new account if you are a new user or log in to your account. ... 3 Connect your GitHub Repository on Heroku and Deploy

What is Heroku and how to use it?

Heroku is a hosting platform where you can deploy dynamic applications in Rails, PHP, Node.js and Python web applications. In order to deploy a site you need a couple of things: Download the Heroku Toolbelt – a command line application for managing your Heroku account

How can I detect a static IP address in Heroku?

You can use A simple HTTP and REST client for Ruby for detecting your IP: Next, you can run the below example in an IRB session and verify that the final IP returned is one of your two static IPs. Fixie is another option. Fixie is an add-on that provides Heroku applications with a fixed set of static IP addresses for outbound requests.

How to create an app with a specified name in Heroku?

When you run the command, the url that appears is the deployment url of the created web application, and the address of the created remote git repository is also displayed. If you want to create an app with a specified name, you can use heroku create <app-name> or heroku apps:create <app-name> command.


1 Answers

It's better to look into: https://devcenter.heroku.com/articles/quotaguardstatic

If you have a credit card and the app has no much traffic (250 request and 100MB of traffic bandwidth) Quotaguard has a free starter plan (to add this to heroku heroku addons:add quotaguardstatic:starter).

Here are the plans: Quota Guard Static Plans

like image 159
halbano Avatar answered Sep 26 '22 18:09

halbano