Created
March 14, 2012 14:43
-
-
Save lopter/2036948 to your computer and use it in GitHub Desktop.
Run Play 1.2.x on dotCloud's custom service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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