-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.sh
35 lines (29 loc) · 915 Bytes
/
configure.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
#Generate an encryption key for the app
echo "Generating encription key"
vendor/bin/sail artisan key:generate
echo "Encription key generated!"
#Publish assets
echo "Publishing assets..."
vendor/bin/sail artisan vendor:publish --tag=public
vendor/bin/sail artisan vendor:publish --tag=resource
echo "Published!"
#Install npm dependencies
echo "Installing npm dependencies..."
vendor/bin/sail npm isntall
echo "npm dependencies installed!"
#Compile assets
echo "Compiling assets..."
vendor/bin/sail npm run dev
echo "Assets compiled!"
#Execute migrations
echo "Executing migrations..."
vendor/bin/sail artisan migrate
echo "Migrations executed!"
#Link storage
echo "Linking storage..."
vendor/bin/sail artisan storage:link
echo "Storage linked!"
#Creates a new user
echo "Creating user..."
vendor/bin/sail artisan library:createuser joe [email protected] secret
echo "User created! [email protected] password=secret"