Created
March 31, 2016 18:14
-
-
Save rummykhan/2fbf347298b97b5c546ddabc9aa30306 to your computer and use it in GitHub Desktop.
simple laravel deployment script
This file contains 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 /var/www/html/index.php /var/www/index.php.saved | |
rm -rf /var/www/html/* | |
cp -a /var/www/osn/public/. /var/www/html/ | |
rm -rf /var/www/html/index.php | |
mv /var/www/index.php.saved /var/www/html/index.php | |
chmod -R 777 /var/www/html/images/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment