Fix Debian deploy commands for app user
This commit is contained in:
@ -98,20 +98,18 @@ GRANT ALL PRIVILEGES ON DATABASE qris_soundbox_platform TO qris_app;
|
||||
Contoh deploy awal via git:
|
||||
|
||||
```bash
|
||||
sudo -u qrisapp git clone <repo-url> /opt/qris-soundbox
|
||||
cd /opt/qris-soundbox
|
||||
sudo -u qrisapp npm ci
|
||||
sudo -u qrisapp npm run typecheck
|
||||
sudo -u qrisapp npm run build
|
||||
sudo -u qrisapp git clone https://git.iptek.co/wirabasalamah/Qris-Soundbox.git /opt/qris-soundbox
|
||||
sudo -u qrisapp bash -lc 'cd /opt/qris-soundbox && npm ci'
|
||||
sudo -u qrisapp bash -lc 'cd /opt/qris-soundbox && npm run typecheck'
|
||||
sudo -u qrisapp bash -lc 'cd /opt/qris-soundbox && npm run build'
|
||||
```
|
||||
|
||||
Jika deploy dari artifact, extract/copy artifact ke `/opt/qris-soundbox`, lalu:
|
||||
|
||||
```bash
|
||||
sudo chown -R qrisapp:qrisapp /opt/qris-soundbox
|
||||
cd /opt/qris-soundbox
|
||||
sudo -u qrisapp npm ci
|
||||
sudo -u qrisapp npm run build
|
||||
sudo -u qrisapp bash -lc 'cd /opt/qris-soundbox && npm ci'
|
||||
sudo -u qrisapp bash -lc 'cd /opt/qris-soundbox && npm run build'
|
||||
```
|
||||
|
||||
Catatan: command `npm run typecheck`, `npm run db:migrate`, dan sebagian smoke script membutuhkan dev dependency. Untuk server staging/pilot awal, gunakan `npm ci` penuh agar semua command operasional tersedia. Service production tetap menjalankan hasil build lewat `npm run start:dist`.
|
||||
|
||||
Reference in New Issue
Block a user