{"id":15051185,"url":"https://github.com/cbornet/generator-jhipster-debian-packager","last_synced_at":"2025-04-10T02:41:26.674Z","repository":{"id":57247574,"uuid":"48880463","full_name":"cbornet/generator-jhipster-debian-packager","owner":"cbornet","description":"JHipster module to package a JHipster application into a debian/ubuntu .deb package","archived":false,"fork":false,"pushed_at":"2016-02-03T20:23:30.000Z","size":14,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T04:11:37.651Z","etag":null,"topics":["debian","jhipster"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cbornet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-01T14:45:59.000Z","updated_at":"2019-01-04T10:45:40.000Z","dependencies_parsed_at":"2022-08-24T16:51:11.902Z","dependency_job_id":null,"html_url":"https://github.com/cbornet/generator-jhipster-debian-packager","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbornet%2Fgenerator-jhipster-debian-packager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbornet%2Fgenerator-jhipster-debian-packager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbornet%2Fgenerator-jhipster-debian-packager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbornet%2Fgenerator-jhipster-debian-packager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbornet","download_url":"https://codeload.github.com/cbornet/generator-jhipster-debian-packager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248144929,"owners_count":21055009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debian","jhipster"],"created_at":"2024-09-24T21:31:31.038Z","updated_at":"2025-04-10T02:41:26.646Z","avatar_url":"https://github.com/cbornet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# generator-jhipster-debian-packager\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url]\n\u003e JHipster module, packages a JHipster application into a debian/ubuntu .deb package\n\n# Introduction\n\nThis is a [JHipster](http://jhipster.github.io/) module, that is meant to be used in a JHipster application.\nThe module uses the [jdeb](https://github.com/tcurdt/jdeb) library to repackage the war and configuration files into a .deb archive\n\n# Prerequisites\n\nAs this is a [JHipster](http://jhipster.github.io/) module, we expect you have JHipster and its related tools already installed:\n\n- [Installing JHipster](https://jhipster.github.io/installation.html)\n\n# Installation\n\nTo install this module:\n\n```bash\nnpm install -g generator-jhipster-debian-packager\n```\n\nTo update this module:\n```bash\nnpm update -g generator-jhipster-debian-packager\n```\n\n# Usage\n\nIn your JHipster project directory run:\n```bash\nyo jhipster-debian-packager\n```\nThis will add a jdeb goal to the pom.xml and support files that will create a .deb archive in the target directory when ```mvn package``` is called.\nOptions :\n* ```--force``` if you don't want questions to be asked.\n* ```--clean``` to uninstall the module instead of installing.\n\nNOTE: with the current version of JHipster, some modifications must be done manually in the pom.xml:\n* upgrade Spring Boot version to 1.3.2.RELEASE (because of issue https://github.com/spring-projects/spring-boot/issues/4866)\n* with JHipster version \u003c= 2.26.2, set the war as executable for the prod profile with ```\u003cexecutable\u003etrue\u003c/executable\u003e```\n\nYou can then use the command\n```bash\ndpkg-i target/myapp_0.0.1~SNAPSHOT_all.deb\n```\nto install the package on a debian or ubuntu server. Or you can deploy it to an apt repository.\n\nThe executable war will be installed and started as a linux service. To start it manually use:\n```bash\nsudo service \u003cappname\u003e start\n```\nBy default, the application is started with the ```prod``` profile. This can be changed in the ```/etc/default/\u003cappname\u003e``` configuration file.\n\nThe package installs the following files:\n* ```/usr/share/\u003cappname\u003e/lib/\u003cappname\u003e-\u003cversion\u003e.war```: your JHipster application as executable war symlinked to ```/usr/share/\u003cappname\u003e/bin/\u003cappname\u003e```\n* ```/etc/default/\u003cappname\u003e```: the launch script configuration file (see Spring Boot [doc](https://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html#deployment-script-customization-conf-file). The .conf file is symlinked to this file)\n* ```/etc/\u003cappname\u003e/```: the directory for the configuration files (application.yml, ...)\n* ```/var/log/\u003cappname\u003e/``` : the directory for the application logs\n\n# License\n\nApache-2.0 © [Christophe Bornet]\n\n[npm-image]: https://img.shields.io/npm/v/generator-jhipster-debian-packager.svg\n[npm-url]: https://npmjs.org/package/generator-jhipster-debian-packager\n[travis-image]: https://travis-ci.org/cbornet/generator-jhipster-debian-packager.svg?branch=master\n[travis-url]: https://travis-ci.org/cbornet/generator-jhipster-debian-packager\n[daviddm-image]: https://david-dm.org/cbornet/generator-jhipster-debian-packager.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/cbornet/generator-jhipster-module\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbornet%2Fgenerator-jhipster-debian-packager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbornet%2Fgenerator-jhipster-debian-packager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbornet%2Fgenerator-jhipster-debian-packager/lists"}