Giter Club home page Giter Club logo

heroku-buildpack-grunt-maven's Introduction

Heroku buildpack: Grunt and Maven

This is a Heroku buildpack for apps with a Grunt build process for the frontend and a Maven build process for the backend.

Optionally it will install bower dependencies if there is a bower.json file present.

It uses Maven 3.0.3 to build your application and OpenJDK 1.6.0_20 to run it.

Usage

Example usage:

$ ls
(bower.json) Gruntfile.js Procfile  pom.xml  src

$ heroku create --stack cedar --buildpack https://github.com/whyjustin/heroku-buildpack-grunt-maven

$ git push heroku master

The buildpack will detect your app as Grunt Maven if it has the file pom.xml and Gruntfile.js in the root. It will first use the Node Package Manager to download any dependencies required by Grunt, then use Grunt to execute the build defined by your Gruntfile.js and finally use Maven to execute the build defined by your pom.xml and download your dependencies. The .m2 folder (local maven repository) will be cached between builds for faster dependency resolution. However neither the mvn executable or the .m2 folder will be available in your slug at runtime.

Choose a JDK

Create a system.properties file in the root of your project directory and set java.runtime.version=1.7.

Example:

$ ls
Procfile pom.xml src

$ echo "java.runtime.version=1.7" > system.properties

$ git add system.properties && git commit -m "Java 7"

$ git push heroku master
...
-----> Heroku receiving push
-----> Fetching custom language pack... done
-----> Java app detected
-----> Installing OpenJDK 1.7... done
...

License

Licensed under the MIT License. See LICENSE file.

heroku-buildpack-grunt-maven's People

Contributors

jsimone avatar mmcgrana avatar ryanbrainard avatar sclasen avatar ticktock avatar whyjustin 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.