Skip to content

Instantly share code, notes, and snippets.

@lopter
Created March 14, 2012 14:43
Show Gist options
  • Save lopter/2036948 to your computer and use it in GitHub Desktop.
Save lopter/2036948 to your computer and use it in GitHub Desktop.
Run Play 1.2.x on dotCloud's custom service
#!/bin/sh
rsync -aH --delete --exclude "data" * ~/code/
ln -sf ~/code/$SERVICE_APPROOT ~/current
cat > ~/run << 'EOF'
#!/bin/sh
cd /home/dotcloud/current
exec ../play run --http.port=$PORT_WWW
EOF
chmod +x ~/run
play:
type: custom
buildscript: builder
ports:
www: http
# The name of your app, as in "play new"
approot: myapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment