forked from miguel456/rbrecruiter
Add installation bootstrap script
This commit is contained in:
parent
2bf8c8e90c
commit
f673ef8222
|
@ -66,8 +66,6 @@ class Install extends Command
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$composer->mustRun();
|
|
||||||
$progress->advance();
|
|
||||||
|
|
||||||
$npm->mustRun();
|
$npm->mustRun();
|
||||||
$progress->advance();
|
$progress->advance();
|
||||||
|
|
32
install.sh
32
install.sh
|
@ -1,32 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo "[!! Welcome! The application will now run through all necessary steps to make sure everything works. !!]"
|
echo "Preliminary installation starting!"
|
||||||
|
sleep 3
|
||||||
echo ">> Installing PHP dependencies..."
|
|
||||||
composer install
|
composer install
|
||||||
|
|
||||||
echo ">> Installing Javascript dependencies..."
|
echo "Full installation starting!"
|
||||||
npm install
|
php artisan application: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."
|
|
||||||
|
|
Loading…
Reference in New Issue