Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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