Skip to content

Firefly III: a personal finances manager

Moved some scripts around.

James Cole62ba40b687d7
diff --git a/ide-helper-reset.sh b/ide-helper-reset.sh
deleted file mode 100755
index 8bee4eada8..0000000000
--- a/ide-helper-reset.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/bash
-composer self-update
-php artisan migrate:refresh --seed --env=local
-./ide-helper.sh
\ No newline at end of file
diff --git a/ide-helper.sh b/ide-helper.sh
deleted file mode 100755
index 00a79c0111..0000000000
--- a/ide-helper.sh
+++ /dev/null
@@ -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
diff --git a/ide-helper.bat b/scripts/ide-helper.bat
similarity index 100%
rename from ide-helper.bat
rename to scripts/ide-helper.bat
diff --git a/scripts/local-cleanup-reload.sh b/scripts/local-cleanup-reload.sh
new file mode 100755
index 0000000000..4021b6a336
--- /dev/null
+++ b/scripts/local-cleanup-reload.sh
@@ -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
diff --git a/scripts/local-reset.sh b/scripts/local-reset.sh
new file mode 100755
index 0000000000..963fbd1377
--- /dev/null
+++ b/scripts/local-reset.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+php ../artisan migrate:refresh --seed --env=local
\ No newline at end of file
diff --git a/scripts/vagrant-load.sh b/scripts/vagrant-load.sh
new file mode 100755
index 0000000000..b7e0f3987c
--- /dev/null
+++ b/scripts/vagrant-load.sh
@@ -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
diff --git a/scripts/vagrant-migrate.sh b/scripts/vagrant-migrate.sh
new file mode 100755
index 0000000000..df52192d0c
--- /dev/null
+++ b/scripts/vagrant-migrate.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+php ../artisan migrate --seed --env=vagrant
\ No newline at end of file
diff --git a/scripts/vagrant-reset.sh b/scripts/vagrant-reset.sh
new file mode 100755
index 0000000000..cc949cb9cf
--- /dev/null
+++ b/scripts/vagrant-reset.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+php ../artisan migrate:refresh --seed --env=vagrant
\ No newline at end of file
diff --git a/vagrant-reload.sh b/vagrant-reload.sh
deleted file mode 100755
index 15fae7c7e6..0000000000
--- a/vagrant-reload.sh
+++ /dev/null
@@ -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