-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall
executable file
·37 lines (34 loc) · 1.01 KB
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
echo ''
echo 'This sets up the Bible SuperSearch API'
echo ''
echo 'Please copy .env.example to .env and configure your database before you run this set up.'
echo ''
echo 'Warning: Running this will ERASE the Bible SuperSearch tables if already installed'
echo ''
read -p "Are you sure? (Y/n) " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
# do dangerous stuff
echo ''
echo 'Pulling in Composer dependencies'
echo ''
php composer.phar install
echo ''
echo 'Generating application key'
php artisan key:generate
echo ''
# Laravel/Lumen artisan command needed to set this up
echo 'Setting up database'
echo ''
php artisan migrate:refresh --seed
echo ''
echo 'Basic installation is complete'
echo ''
echo 'Bibles Available:'
echo ''
php artisan bible:list
echo ''
echo 'Run php artisan bible:install to install Bible Modules'
echo 'Run php artisan bible:enable to enable Bible Modules after they are installed'
fi