From 61034ccae9ec908f8199c4b4244c8cfe0424499a Mon Sep 17 00:00:00 2001 From: vagrant Date: Wed, 8 Jul 2020 06:02:32 +0000 Subject: [PATCH] Added simple installation script --- install.sh | 32 + test.php | 1633 ---------------------------------------------------- 2 files changed, 32 insertions(+), 1633 deletions(-) create mode 100644 install.sh delete mode 100644 test.php diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..60046d8 --- /dev/null +++ b/install.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +echo "[!! Welcome! The application will now run through all necessary steps to make sure everything works. !!]" + +echo ">> Installing PHP dependencies..." +composer install + +echo ">> Installing Javascript dependencies..." +npm install + +echo ">> Building scripts..." +npm run dev + +echo ">> Configuring Homestead database..."; +cp .env.example .env + +echo ">> Generating secure application key..." +php artisan key:generate + +sed -i 's/laravel/homestead/g' .env +sed -i 's/root/homestead/g' .env +sed -i 's/password/secret/g' .env + +echo "!! Warning! Many other options, such as Recaptcha, IP location, and email sending have not been configured automatically. " + +echo ">> Running migrations..." +php artisan migrate +php artisan db:seed + +php artisan config:cache + +echo "Enjoy! Install finished." diff --git a/test.php b/test.php deleted file mode 100644 index cd57e3e..0000000 --- a/test.php +++ /dev/null @@ -1,1633 +0,0 @@ -