Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mark Scherer
committed
Feb 3, 2015
1 parent
cf45bd9
commit 6757e1f
Showing
1 changed file
with
8 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
#!/bin/bash | ||
echo "### INSTALL ###"; | ||
# Warning: This is NOT a productive script, but for local dev envs only! | ||
|
||
echo "### INSTALL/UPDATE ###"; | ||
php composer.phar selfupdate | ||
|
||
git pull | ||
|
||
php composer.phar update --prefer-dist --no-dev --optimize-autoloader | ||
php composer.phar update --prefer-dist --no-dev --optimize-autoloader --no-interaction | ||
|
||
echo "### CLEANUP ###"; | ||
#echo "### DB MIGRATION ###"; | ||
# Don't forget to "chmod +x bin/cake" first | ||
#bin/cake Migrations migrate | ||
|
||
echo "### CLEANUP ###"; | ||
rm -rf ./tmp/cache/models/* | ||
rm -rf ./tmp/cache/persistent/* | ||
|
||
chown -R www-data:www-data * | ||
|
||
echo "### DONE ###"; | ||
exit | ||
exit; |