Moved some scripts around.

This commit is contained in:
James Cole 2014-09-14 21:05:56 +02:00
parent f9af9a4fbe
commit 62ba40b687
9 changed files with 62 additions and 36 deletions

View File

@ -1,4 +0,0 @@
#!/bin/bash
composer self-update
php artisan migrate:refresh --seed --env=local
./ide-helper.sh

View File

@ -1,27 +0,0 @@
#!/bin/bash
#composer self-update
rm -f ./app/storage/firefly-iii-import-*.json
rm -f ./app/storage/debugbar/*.json
rm -f ./app/storage/logs/laravel.log
rm -f ./app/storage/meta/services.json
for i in `seq 0 9`;
do
rm -f ./app/storage/views/$i*
done
rm -f ./app/storage/views/a*
rm -f ./app/storage/views/b*
rm -f ./app/storage/views/c*
rm -f ./app/storage/views/d*
rm -f ./app/storage/views/e*
rm -f ./app/storage/views/f*
composer update
php artisan clear-compiled --env=local
php artisan ide-helper:generate --env=local
php artisan ide-helper:models --env=local --write
php artisan optimize --env=local
php artisan dump-autoload --env=local

29
scripts/local-cleanup-reload.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/bash
cd ..
composer self-update
composer update
cd scripts
rm -f ../app/storage/firefly-iii-import-*.json
rm -f ../app/storage/debugbar/*.json
rm -f ../app/storage/logs/larave*.log
rm -f ../app/storage/meta/services.json
for i in `seq 0 9`;
do
rm -f ../app/storage/views/$i*
done
rm -f ../app/storage/views/a*
rm -f ../app/storage/views/b*
rm -f ../app/storage/views/c*
rm -f ../app/storage/views/d*
rm -f ../app/storage/views/e*
rm -f ../app/storage/views/f*
php ../artisan clear-compiled --env=local
php ../artisan ide-helper:generate --env=local
php ../artisan ide-helper:models --env=local --write
php ../artisan optimize --env=local
php ../artisan dump-autoload --env=local
./local-reset.sh

2
scripts/local-reset.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
php ../artisan migrate:refresh --seed --env=local

27
scripts/vagrant-load.sh Executable file
View File

@ -0,0 +1,27 @@
#!/bin/bash
composer self-update
composer update
rm -f ../app/storage/firefly-iii-import-*.json
rm -f ../app/storage/debugbar/*.json
rm -f ../app/storage/logs/laravel.log
rm -f ../app/storage/meta/services.json
for i in `seq 0 9`;
do
rm -f ../app/storage/views/$i*
done
rm -f ../app/storage/views/a*
rm -f ../app/storage/views/b*
rm -f ../app/storage/views/c*
rm -f ../app/storage/views/d*
rm -f ../app/storage/views/e*
rm -f ../app/storage/views/f*
php ../artisan clear-compiled --env=vagrant
php ../artisan ide-helper:generate --env=vagrant
php ../artisan ide-helper:models --env=vagrant --write
php ../artisan optimize --env=vagrant
php ../artisan dump-autoload --env=vagrant
./vagrant-reset.sh

2
scripts/vagrant-migrate.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
php ../artisan migrate --seed --env=vagrant

2
scripts/vagrant-reset.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
php ../artisan migrate:refresh --seed --env=vagrant

View File

@ -1,5 +0,0 @@
#!/bin/sh
php artisan migrate:refresh --seed --env=vagrant
rm -f ./app/storage/logs/laravel.log;
rm -f ./app/storage/*.json
sudo service nginx restart