Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mvberg/deployment

Easy application deployment
https://github.com/mvberg/deployment

Last synced: about 2 months ago
JSON representation

Easy application deployment

Awesome Lists containing this project

README

        

## Deploy any Java app in 10 minutes

- Dokku (https://github.com/progrium/dokku)
- DigitalOcean (http://digitalocean.com)

### 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