Skip to content

Commit 45e43f2

Browse files
authored
doc: add documentation for how to deploy (#61)
1 parent ac0d529 commit 45e43f2

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,3 +249,15 @@ php artisan email:memberapp --email=<members email> --recipient=<your email>
249249
* **kOS Gatekeeper Project** - Raspberry Pi-based lockout with a custom PCB & enclosures designed for NFC-based key access and tool lockout modes. Two-way communication allows for remote status updates, tool lockout (for maintenance) and door unlock events. Enclosures are 3D printed and PCB is designed with through-hole components for easy assembly.
250250

251251
Communication & key synchronization with kOS is done via an SSL-encrypted API allowing for unlimited custom hardware possibilities.
252+
253+
## Current Deploy Process
254+
255+
Yes I know this is janky, but it works for now.
256+
257+
1. SSH into the server
258+
2. run the deploy script as the www-data user
259+
260+
```
261+
cd /var/www/kos-base/
262+
sudo -u www-data ./deploy.sh
263+
```

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ git fetch origin main
1212

1313
php artisan down || true
1414

15-
git merge --ff-only origin/main
15+
git checkout origin/main
1616

1717
composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader
1818

0 commit comments

Comments
 (0)