Skip to content

Commit 81a970c

Browse files
committed
Updating docs
1 parent be085bd commit 81a970c

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

docs/lessons/2_build_script.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,29 @@
77

88
echo "Running deploy script"
99

10-
echo "[1/4] Pulling from github"
10+
echo "[1/5] Pulling from GitHub"
1111
git pull origin
1212

13-
echo "[1/5] Creating database if one isn't found"
13+
echo "[2/5] Creating database if one isn't found"
1414
touch database/database.sqlite
1515

16-
echo "[2/6] Installing packages using composer"
16+
echo "[3/5] Installing packages using composer"
1717
composer install
1818

19-
echo "[3/7] Publishing API Platform assets"
19+
echo "[4/5] Publishing API Platform assets"
2020
php artisan api-platform:install
2121

22-
echo "[4/8] Migrating database"
23-
php artisan migrate --force
22+
echo "[5/5] Migrating database"
23+
php artisan migrate --force
2424

25-
echo "Site has been deployed!"
25+
echo "The app has been built!"
2626

2727
```
2828

2929
3. Change permissions of `build.sh` to allow for executable
3030

3131
```bash
32-
sudo chmod +x deploy.sh
32+
sudo chmod +x build.sh
3333
```
3434

3535
4. Commit changes to repo
@@ -67,4 +67,6 @@ git config --global --add safe.directory /home/1352768.cloudwaysapps.com/ejpujun
6767
```
6868
12. SSH into VPS and clone the app onto `public_html`
6969

70-
13. Run `./build.sh` to update app
70+
13. Run `./build.sh` to update app
71+
72+
14. `ssh [email protected] 'cd /home/master/applications/bwjdzjxpkt/public_html && ./build.sh'`

0 commit comments

Comments
 (0)