Created
May 20, 2013 15:31
-
-
Save yuta-imai/5612971 to your computer and use it in GitHub Desktop.
Cloud-init script to set up directories those are capistrano ready
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 | |
cd /var/www/html | |
mkdir shared | |
mkdir releases | |
cd releases | |
git clone https://github.com/imaifactory/howtodeploy.git | |
mv -f howtodeploy initial | |
cd .. | |
ln -s releases/initial current | |
chown ec2-user:ec2-user -R ./* | |
apachectl start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment