Skip to content

Instantly share code, notes, and snippets.

@pigoz
Created September 4, 2012 09:39
Show Gist options
  • Save pigoz/3619204 to your computer and use it in GitHub Desktop.
Save pigoz/3619204 to your computer and use it in GitHub Desktop.
really dumb installer for play 2.0.3

Installing Play

Run play-install.sh from any directory you want, this will automate the installation of play in any directory you want it. It is possibile to install through sbt by just setting up a sbt project with play as a dependency but you seem to loose the rails like magic for project generation and such (and I like magic).

Also play is in homebrew! Happy about that? Well, don't use it because it's broken! There is a bug in the play shell script launcher when play is invoked through symlinks. This is the ticket on their issue tracker: https://play.lighthouseapp.com/projects/82401/tickets/194-failure-on-getting-a-realpath-of-the-execution-file-play

#!/bin/sh
PLAY=play-2.0.3
PLAYZIP=$PLAY.zip
wget http://download.playframework.org/releases/$PLAYZIP
unzip $PLAYZIP
echo 'add the following to .bashrc/.zshrc:'
echo ' export PATH=$PATH:'$(pwd)'/'$PLAY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment