-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
41 lines (26 loc) · 830 Bytes
/
install.sh
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
37
38
39
40
41
#!/bin/bash
# commands start
# Install Composer dependencies
composer install
# Install NPM dependencies
npm install
# compile assets
npm run dev # (for development)
#or
npm run production # (for production)
# Create an environment file
cp .env.example .env
# Generate application key
php artisan key:generate
# Run database migrations
php artisan migrate
# Seed the database using DatabaseSeeder
php artisan db:seed --class=DatabaseSeeder
# Give appropriate permissions to storage and cache directories
chmod -R 775 storage bootstrap/cache
# commands end
# Inform the user about for additional steps needed
echo "Installation completed. Don't forget to configure your web server and set up pusher service if needed."
echo "dont forget to configure pusher in .env file"
read -p "Press Enter to exit..."
exit 0