Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/casualjim/sbt-jelastic-deploy
https://github.com/casualjim/sbt-jelastic-deploy
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/casualjim/sbt-jelastic-deploy
- Owner: casualjim
- Created: 2012-08-11T18:05:09.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-03T18:23:41.000Z (over 10 years ago)
- Last Synced: 2024-10-06T05:01:41.614Z (about 1 month ago)
- Language: Scala
- Size: 197 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deploy a war to jelastic.
This sbt plugin deploys a war generated by the xsbt-web-plugin, as such it depends on the xsbt-web-plugin.
The plugin will add the xsbt-web-plugin to your build too but won't configure it.
For more information on how to configure the xsbt-web-plugin, visit its [wiki](https://github.com/siasia/xsbt-web-plugin/wiki/)## Installing the plugin
Add plugin resolver
```scala
resolvers += Resolver.url("sbt-plugin-releases",
new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns)
```For sbt 0.13.x
```scala
addSbtPlugin("com.github.casualjim" % "sbt-jelastic-deploy" % "0.1.4")
```For sbt 0.12.x
```scala
addSbtPlugin("com.github.casualjim" % "sbt-jelastic-deploy" % "0.1.2")
```If you use this plugin in conjuction with xsbt-gpg-plugin you need version 0.7 or higher.
Currently this isn't available in maven yet but you can add a source dependency in ~/.sbt/plugins/project/plugins.scala. And remove the declaration in your ~/.sbt/plugins/plugins.sbt file.```scala
import sbt._
import Keys._object GlobalPluginsBuild extends Build {
lazy val root = (Project("plugins", file("."))
dependsOn uri("git://github.com/sbt/xsbt-gpg-plugin.git#sbt-0.12"))
}
```## Configuring the plugin
The plugin requires a couple of keys to be set. In build.sbt:
```scala
import JelasticKeys._seq(jelasticSettings:_*)
email in deploy := "YOUR_EMAIL_HERE"
password in deploy := "YOUR PASSWORD HERE"
apiHoster := "app.j.layershift.co.uk"
environment in deploy := "YOUR_ENVIRONMENT_HERE"
```Optionally you can configure some other properties too, these are shown below with their default values:
```scala
comment in deploy := ""comment in upload := ""
context in deploy := "ROOT"
onlyUpload in deploy := false
port in deploy := 443
port in upload := 443
```## Using the plugin
The plugin adds 2 tasks: `deploy` and `upload`
The `upload` task will build a war and then upload it to the jelastic api host.
The `deploy` task will build a war, then upload and deploy it to the specified environment and context.