braintree / braintree_spring_example

An example Braintree integration for Spring (Java)
MIT License
81 stars 60 forks source link

Add procfile and refactor to support Heroku deploys #3

Closed raymondberg closed 8 years ago

raymondberg commented 8 years ago

Background

We want to integrate a "Deploy to Heroku" button to enable people who do not have development experience to easily launch our example integration and explore the running application.

This PR updates our integration to use environment variables to configure the app and adds a Procfile to specify the webserver to serve the app. Following this PR we will add the code to include a "Deploy to Heroku" button on the README.md

Special Case for Java

Heroku uses the system environment for configuration variables. This commit refactors the gateway instantiation to allow either a config.properties file or system environment variables in preparation for Heroku deployment.

pblesi commented 8 years ago

Looks good 🔉 🎵 🎶 🎵 🎶 👂

augustj commented 8 years ago

👍