Skip to content

Instantly share code, notes, and snippets.

@petehouston
Created February 19, 2015 06:52
Show Gist options
  • Save petehouston/32ae937e3b7bfab3b7a2 to your computer and use it in GitHub Desktop.
Save petehouston/32ae937e3b7bfab3b7a2 to your computer and use it in GitHub Desktop.
Little script to sync the project/public/ and www/ directory for Laravel 5 deployment
#!/bin/sh
mv www/index.php index.php.saved
rm -rf www/*
# update project/ to your directory name
cp -a project/public/* www
cp project/public/.* www
rm -rf www/index.php
mv index.php.saved www/index.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment