Skip to content

Instantly share code, notes, and snippets.

@yuta-imai
Created May 20, 2013 15:31
Show Gist options
  • Save yuta-imai/5612971 to your computer and use it in GitHub Desktop.
Save yuta-imai/5612971 to your computer and use it in GitHub Desktop.
Cloud-init script to set up directories those are capistrano ready
#!/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