Giter Club home page Giter Club logo

deployment's Introduction

Deploy any Java app in 10 minutes

Quick setup for Dokku server running at DigitalOcean

http://goo.gl/1UtP1X
https://github.com/progrium/dokku#deploy-an-app

Java application sample

Simple Maven project with maven-jar-plugin

https://github.com/mvberg/dokku-java-sample

Remote push

git remote add dokku dokku@SERVER:java-sample
git push dokku master

Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 632 bytes, done.
Total 3 (delta 1), reused 0 (delta 0)
...
remote: -----> Building one-tester ...
remote: Java app detected
remote: -----> Installing OpenJDK 1.6... done
remote: -----> Installing settings.xml... done
remote: -----> executing /cache/.maven/bin/mvn -B -Duser.home=/build/app clean install
...
remote: -----> Discovering process types
remote: Procfile declares types -> web
remote: -----> Releasing one-tester ...
remote: -----> Deploying one-tester ...
remote: -----> Cleaning up ...
remote: =====> Application deployed:
remote: http://XXX.XXX.XXX.XXX:49156

Confirm app is deployed

List deployed apps: docker ps -a
Get logs from app: docker logs [CONTAINER_ID]

Redeploy with git push dokku master

Have a beer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.