Skip to content
Newer
Older
100644 58 lines (40 sloc) 2.24 KB
1386561 @jsimone add readme
jsimone authored Nov 30, 2011
1 Heroku buildpack: Play!
2 =========================
3
4 This is a [Heroku buildpack](http://devcenter.heroku.com/articles/buildpack) for [Play! framework](http://www.playframework.org/) apps.
5
6 Usage
7 -----
8
9 Example usage:
10
11 $ ls
1d55a56 @jsimone correct ls output in readme file
jsimone authored Nov 30, 2011
12 app conf lib public test
1386561 @jsimone add readme
jsimone authored Nov 30, 2011
13
14 $ heroku create --stack cedar --buildpack http://github.com/heroku/heroku-buildpack-play.git
15
16 $ git push heroku master
17 ...
18 -----> Heroku receiving push
19 -----> Fetching custom build pack... done
20 -----> Play! app detected
21 -----> Installing Play!..... done
22 -----> Installing ivysettings.xml..... done
23 -----> Building Play! application...
24 ~ _ _
25 ~ _ __ | | __ _ _ _| |
26 ~ | '_ \| |/ _' | || |_|
27 ~ | __/|_|\____|\__ (_)
28 ~ |_| |__/
29 ~
30 ~ play! 1.2.3, http://www.playframework.org
31 ~
32 1.2.3
33 Building Play! application at directory ./
34 ...
35
36 The buildpack will detect your app as using the Play! framework if it has an `application.conf` in a `conf` directory. Your dependencies will be resolved using `play dependencies` and your app precompiled with `play precompile`. If you don't provide a Procfile the build pack will default to launching your app with `play run --%prod -Dprecompiled=true`.
37
38 Hacking
39 -------
40
41 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.
42
43 For example one of the things that the build pack does is download and install the Play! framework that will be used to run your app. If you want to use a different version of the play framework place a tar.gz of the framework in a public location and then alter the line that sets this variable in the compile script to point there:
44
45 PLAY_URL="https://s3.amazonaws.com/heroku-jvm-langpack-play/play-heroku.tar.gz"
46
47 This will alter the behaviour to pull down and install your chosen version of Play! rather than the default.
48
49 Commit and push the changes to your buildpack to your Github fork, then push your sample app to Heroku to test. Once the push succeeds you should be able to run:
50
51 $ heroku run bash
52
53 and then:
54
55 $ play version
56
57 and you'll see the your chosen play version printed.
Something went wrong with that request. Please try again.