Code Monkey home page Code Monkey logo

play2-native-packager-plugin's Introduction

play2-native-packager-plugin

Play Framework Plugin for producing native system distribution packages

You can utilize this plugin to create standalone deb, rpm, homebrew and msi packages for your play! applications.

It basically assists in the configuration of the SBT Native packager

At the momment we have only worked on generating debian (.deb) packages

This readme knows that version 0.2 is available in Maven Central.

Play versions support

For Play 2.0.X you may continue to use version 0.2.
For Play 2.1.X go ahead and try out version 0.4.1.

Usage

Include the plugin in your plugins.sbt file:

//Typesafe Repo
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

//sbt-native-packager repo
resolvers += Resolver.url("scalasbt", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)

//play2-native-packager-plugin snapshot repo
resolvers += "OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"

addSbtPlugin("net.kindleit" %% "play2-native-packager-plugin" % "0.4.1")

In your Build.scala file, after you import

import net.kindleit.play2.natpackplugin.NatPackPlugin._
import NatPackKeys._

you can fill out your project as:

val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).settings(natPackSettings ++ Seq(
  maintainer := "John Doe <[email protected]>",
  packageSummary := "My custom package summary",
  packageDescription := "My longer package description"
  userName := "www-data",
  groupName := "www-data"
):_*)

To fill out the appropriate packaging metadata.

Debian Support

The play command:

play deb

Genrates a debian package. The final .deb package will depend on the daemon and java2-runtime packages, creating a user account and a SystemV service for your play! application.

e.g. sudo /etc/init.d/myapp start and sudo /etc/init.d/myapp stop

will be availabe and work for you.

If you choose to pass custom arguments to the play app, you are encouraged to create and update /etc/default/myapp to contain your own environment variables and any direct options passed to the play app via the PLAY_ARGS variable

play2-native-packager-plugin's People

Contributors

eamelink avatar kryptt avatar

Watchers

 avatar  avatar

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.