Upload files to "/"
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
# Deploy Coolify - Tugas_SIG Tiara
|
||||
|
||||
Repo ini dijadikan satu landing page untuk Tugas 1 sampai Tugas 4.
|
||||
|
||||
## Struktur utama
|
||||
|
||||
- `/` -> Landing page tugas
|
||||
- `/Tugas1/` -> Tugas 1
|
||||
- `/Tugas2/` -> Tugas 2
|
||||
- `/Tugas3/` -> Tugas 3
|
||||
- `/Tugas4/` -> Tugas 4
|
||||
|
||||
## Coolify
|
||||
|
||||
Buat 1 database MySQL/MariaDB dengan Initial Database:
|
||||
|
||||
```text
|
||||
db_poverty_mapping
|
||||
```
|
||||
|
||||
Buat 1 aplikasi dari repo ini:
|
||||
|
||||
```text
|
||||
Build Pack: Dockerfile
|
||||
Ports Exposes: 80
|
||||
```
|
||||
|
||||
Production Environment Variables:
|
||||
|
||||
```env
|
||||
DB_HOST=host_database_internal
|
||||
DB_PORT=3306
|
||||
DB_NAME=db_poverty_mapping
|
||||
DB_USER=mysql
|
||||
DB_PASS=password_normal_user_database
|
||||
```
|
||||
|
||||
Setelah deploy, buka:
|
||||
|
||||
```text
|
||||
https://URL-TUGAS/install_database.php
|
||||
```
|
||||
|
||||
Jika database berhasil diimport, hapus `install_database.php` lalu redeploy.
|
||||
Reference in New Issue
Block a user