Skip to content

Commit 643ffc1

Browse files
committed
Adding build script
1 parent c08b2bc commit 643ffc1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

build.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
echo "Running deploy script \n"
4+
5+
echo "1/5 Pull new changes\n"
6+
git pull origin main
7+
8+
echo "2/5 Create database if one isn't found \n"
9+
touch database/database.sqlite
10+
11+
echo "3/5 Installing packages using composer\n"
12+
composer install
13+
14+
echo "4/5 Publishing API Platform assets\n"
15+
php artisan api-platform:install
16+
17+
echo "5/5 Migrating database\n"
18+
php artisan migrate
19+
20+
echo "Site has been deployed!\n"
21+

0 commit comments

Comments
 (0)