File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ echo " Running deploy script \n"
4
+
5
+ echo " 1/4 Pull new changes\n"
6
+ git pull origin main
7
+
8
+ echo " 3/4 Create database if one isn't found \n"
9
+ touch database/database.sqlite
10
+
11
+ echo " 2/4 Installing packages using composer\n"
12
+ composer install
13
+
14
+ echo " 4/4 Publishing API Platform assets\n"
15
+ php artisan api-platform:install
16
+
17
+ echo " 5/4 Migrating database\n"
18
+ php artisan migrate
19
+
20
+ echo " Site has been deployed!\n"
21
+
Original file line number Diff line number Diff line change @@ -65,6 +65,14 @@ php artisan migrate
65
65
66
66
6 . Make requests to http://127.0.0.1:8000/api/books via Postman
67
67
68
+ 7 . Upload to Cloudways via Git/Control panel
68
69
70
+ 8 . Change Cloudways PHP version setting to use PHP 8.3
71
+
72
+ 8 . Change Cloudways webroot to ` public_html/public `
73
+
74
+ 9 . SSH onto the VPS copy ` .env.test ` to ` .env `
75
+
76
+ 8 . SSH onto the VPS and run commands in ./deploy.sh
69
77
70
78
You can’t perform that action at this time.
0 commit comments