Just moved my live demo to Heroku cloud application platform. Why I do so? Simple deploy - you just need to push code to heroku git repository and platform will do all remaining work for you. It will force maven build "mvn -B -DskipTests=true clean install" and then execute application instances configured in Procfile.
So, I have git repository on GitHub for my demo. I need to do some configuration to make it run on Heroku:
1. Sign Up
2. Install Heroku Toolbelt
3. Sign in and create new application
4. Link my existing git repository
5. Configure application runner. I use jetty runner for this as described in article. I need to make some enhancement in maven pom.xml:
And add file Procfile:
7. Push to Heroku git repository
8. Open app at http://<app-name>.herokuapp.com/
Now I have linked up my samples on GitHub with live demo on Heroku. All previous articles was updated respectively. It is time to not worry about deploying samples to some app server. It is time to work with code. And when time will come I just need to push it to heroku repository...
More about Heroku
So, I have git repository on GitHub for my demo. I need to do some configuration to make it run on Heroku:
1. Sign Up
2. Install Heroku Toolbelt
3. Sign in and create new application
4. Link my existing git repository
5. Configure application runner. I use jetty runner for this as described in article. I need to make some enhancement in maven pom.xml:
And add file Procfile:
7. Push to Heroku git repository
8. Open app at http://<app-name>.herokuapp.com/
Now I have linked up my samples on GitHub with live demo on Heroku. All previous articles was updated respectively. It is time to not worry about deploying samples to some app server. It is time to work with code. And when time will come I just need to push it to heroku repository...
More about Heroku
No comments:
Post a Comment