Skip to content

Commit

Permalink
script
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed Feb 3, 2015
1 parent cf45bd9 commit 6757e1f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions build.sh
@@ -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;

0 comments on commit 6757e1f

Please sign in to comment.