Heroku Category

Heroku deploy local jar to Maven Dependencies

Sometime a jar is not available via Maven Central Repository and you need to load a jar from your local filesystem. Copy the jar file to a lib directory in your project. Execute the following command via command line Add the following to maven pom.xml

Rate this:

Read More

Run Spring Boot Scheduler as Heroku Worker

1. Setup Application 2. Setup Scheduler 3. Add Spring Boot dependency 4. Add Procfile 5. Scale Heroku worker 1. Setup Application 2. Setup Scheduler 3. Add Spring Boot dependency 4. Add Procfile 5. Scale Heroku worker

Rate this:

Read More

Metrics Dashboard using STOMP WebSocket

http://cloudsole-metrics.herokuapp.com https://github.com/thysmichels/cloudsole-metrics 1. Basic WebAppInitializer 2. WebConfiguration with EnableScheduling 3. WebSocketConfiguration with EnableWebSocketMessageBroker 4. Random Number Generator with ApplicationListener 5. Sock.js Javascript 1. Basic WebAppInitializer 2. WebConfiguration with EnableScheduling 3. WebSocketConfiguration with EnableWebSocketMessageBroker 4. Random Number Generator with ApplicationListener 5. Sock.js Javascript

Rate this:

Read More

Heroku OAuth 2.0 Scribe Spring MVC Example

ApplicationContext.xml defines herokuServiceConfig and herokuServiceProvider Bean Spring MVC Heroku OAuth Controller HerokuOauthApi extends DefaultApi20

Rate this:

Read More

New-Relic Add-on for Java Application on Heroku Setup

Add New Relic Agent Dependency pom.xml build tag Create newrelic.yml and save to project route (same level as pom.xml) Add the following flag to your JAVA_OPTS config var on Heroku:

Rate this:

Read More

Setup Memcached on Heroku

Add memcachedcloud to your project: heroku addons:add memcachedcloud 1. Setup Memcached Configuration 2. Setup Memcached Service 1. Setup Memcached Configuration 2. Setup Memcached Service

Rate this:

Read More

Setup Quartz on Heroku

There are two ways to use Quartz on Heroku: 1. Setup your own Quartz on Heroku 2. Use Heroku Quartz Addon 1. Setup your own Quartz on Heroku Create Postgres db: heroku addons:add heroku-postgresql:dev Get Postgres properties: heroku config Use these properties to specify your: org.quartz.dataSource.dataSource.URL org.quartz.dataSource.dataSource.user org.quartz.dataSource.dataSource.password Your quartz.properties file Create your Quartz tables […]

Rate this:

Read More