Skip to content

Instantly share code, notes, and snippets.

@killtw
Created April 24, 2014 02:04
Show Gist options
  • Save killtw/11239031 to your computer and use it in GitHub Desktop.
Save killtw/11239031 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if [ -z "$1" ]; then
project_name="laravel"
else
project_name="$1"
fi
cd /vagrant
if [ ! -f "$project_name/composer.json" ]; then
composer create-project laravel/laravel $project_name --prefer-dist
else
cd $project_name
composer install --prefer-dist
fi
sudo service nginx reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment