Groom your Play Framework environment.
Do you need sbt and Scala version management? Please refer to sbtenv in the case of use sbt, and scalaenv in the case of use Scala.
-
git clone
playenv into~/.playenv
.$ git clone git://github.com/mazgi/playenv.git ~/.playenv
-
Add
~/.playenv/bin
to your$PATH
for access to theplayenv
command.$ echo 'export PATH="${HOME}/.playenv/bin:${PATH}"' >> ~/.zshrc
-
Add
playenv init
to your shell to enable shims and autocompletion.$ echo 'eval "$(playenv init -)"' >> ~/.zshrc
Bash note: Modify your
~/.bash_profile
file instead of~/.zshrc
. -
Restart your shell so that PATH changes take effect. (Opening a new terminal tab will usually do it.) Now check if playenv was set up:
$ type playenv #=> "playenv is a shell function"
Same as in previous step, use
~/.bash_profile
for Bash. -
Install each version of Play Framework.
$ playenv install play-2.2.1
If show all available version, please use the following command:
$ playenv install -l All available versions: play-1.2.5 play-1.2.5.1 play-1.2.5.2 ...
If want to install manually, please download Play Framework archive and extract into
~/.playenv/versions/
.$ curl -LO http://downloads.typesafe.com/play/2.2.1/play-2.2.1.zip $ unzip play-2.2.1.zip -d ~/.playenv/versions/
0.0.4 (Mar 17, 2014)
- Improved installation instruction by play-install built-in plugin.
0.0.3 (Mar 14, 2014)
- Added Travis CI status badge on README.
- Fixed a bug when run
rehash
subcommand. - Fixed version string.
0.0.2 (Mar 04, 2014)
- Added completions for
Z shell
andBash
.
0.0.1 (Jan 30, 2014)
- Initial public release.