Created
          February 19, 2015 06:52 
        
      - 
      
 - 
        
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
  
        
  
    
      This file contains hidden or 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 | |
| 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