Upload files to "uploads"
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
# Patch Deploy Coolify - UAS TaniaYuniar/UAS
|
||||
|
||||
Repo target: `https://git.ifuntanhub.dev/TaniaYuniar/UAS`
|
||||
|
||||
## File yang perlu diupload ke root repo
|
||||
|
||||
- `Dockerfile`
|
||||
- `koneksi.php` menggantikan koneksi lama yang masih hardcode localhost/root.
|
||||
- `database.sql`
|
||||
- `install_database.php` sementara untuk import database.
|
||||
- `cek_env.php` opsional untuk debugging env.
|
||||
- Folder `uploads/` boleh ikut dibuat supaya upload foto tidak error.
|
||||
|
||||
## Environment Variables di resource aplikasi
|
||||
|
||||
Isi di **Production Environment Variables**:
|
||||
|
||||
```env
|
||||
DB_HOST=host_database_internal
|
||||
DB_PORT=3306
|
||||
DB_NAME=webgis_kemiskinan
|
||||
DB_USER=mysql
|
||||
DB_PASS=password_normal_user_database
|
||||
```
|
||||
|
||||
Ambil `DB_HOST` dari MySQL URL internal, bagian setelah `@` sebelum `:3306`.
|
||||
|
||||
## Urutan deploy
|
||||
|
||||
1. Upload semua file patch ke root repo.
|
||||
2. Buat database MySQL/MariaDB di Coolify.
|
||||
3. Initial Database: `webgis_kemiskinan`.
|
||||
4. Buat aplikasi dari repo.
|
||||
5. Build Pack: `Dockerfile`.
|
||||
6. Ports Exposes: `80`.
|
||||
7. Isi env Production.
|
||||
8. Save All Environment Variables.
|
||||
9. Redeploy aplikasi.
|
||||
10. Buka `/install_database.php`.
|
||||
11. Login: `admin` / `password`.
|
||||
12. Hapus `install_database.php` dan `cek_env.php`, lalu redeploy lagi.
|
||||
Reference in New Issue
Block a user