GithubHelp home page GithubHelp logo

shaggyyeti / heroku-buildpack-scala Goto Github PK

View Code? Open in Web Editor NEW

This project forked from heroku/heroku-buildpack-scala

0.0 2.0 0.0 344 KB

Heroku buildpack: Scala

Home Page: https://devcenter.heroku.com/articles/scala-support

License: MIT License

Shell 86.85% Scala 2.74% Ruby 10.42%

heroku-buildpack-scala's Introduction

Heroku buildpack: Scala Build Status

This is a Heroku buildpack for Scala apps. It uses sbt 0.11.0+.

Usage

Example usage:

$ ls
Procfile build.sbt project src

$ heroku create --buildpack https://github.com/heroku/heroku-buildpack-scala.git

$ git push heroku master
...
-----> Heroku receiving push
-----> Scala app detected
-----> Building app with sbt
-----> Running: sbt clean compile stage

The buildpack will detect your app as Scala if it has the project/build.properties and either .sbt or .scala based build config. It vendors a version of sbt and your popluated .ivy/cache into your slug. The .ivy2 directory will be cached between builds to allow for faster build times.

Hacking

To use this buildpack, fork it on Github. Push up changes to your fork, then create a test app with --buildpack <your-github-url> and push to it.

For example, to reduce your slug size by not including the .ivy2/cache, you could add the following.

for DIR in $CACHED_DIRS ; do
rm -rf $CACHE_DIR/$DIR
mkdir -p $CACHE_DIR/$DIR
cp -r $DIR/.  $CACHE_DIR/$DIR
# The following 2 lines are what you would add
echo "-----> Dropping ivy cache from the slug"
rm -rf $SBT_USER_HOME/.ivy2

Note: You will need to have your build copy the necessary jars to run your application to a place that will remain included with the slug.

Commit and push the changes to your buildpack to your Github fork, then push your sample app to Heroku to test. You should see:

...
-----> Dropping ivy cache from the slug

License

Licensed under the MIT License. See LICENSE file.

heroku-buildpack-scala's People

Contributors

havocp avatar jamesward avatar jeantil avatar jkutner avatar jsimone avatar lstoll avatar matt-thomson avatar mbbx6spp avatar mmcgrana avatar ndeverge avatar ryanbrainard avatar sclasen avatar shaggyyeti avatar ticktock avatar vcherkassky avatar xuwei-k 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.