Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvberg/deployment
Easy application deployment
https://github.com/mvberg/deployment
Last synced: about 2 months ago
JSON representation
Easy application deployment
- Host: GitHub
- URL: https://github.com/mvberg/deployment
- Owner: mvberg
- Created: 2013-12-03T01:56:21.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-03T02:33:40.000Z (about 11 years ago)
- Last Synced: 2023-04-04T15:25:34.484Z (almost 2 years ago)
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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