21 lines
918 B
Markdown
21 lines
918 B
Markdown
Deploy ke InfinityFree
|
|
=====================
|
|
|
|
1. Upload seluruh isi project ke folder public_html (atau subdomain yang Anda buat).
|
|
2. Pastikan folder public di atas menjadi root document. Jika host Anda memakai public_html, pindahkan isi folder public ke public_html, atau atur document root ke folder public.
|
|
3. Buat file .env sesuai setting database InfinityFree.
|
|
4. Pastikan folder storage dan bootstrap/cache writable.
|
|
5. Jalankan perintah berikut di komputer lokal sebelum upload:
|
|
- composer install --optimize-autoloader --no-dev
|
|
- php artisan config:cache
|
|
- php artisan route:cache
|
|
- php artisan view:cache
|
|
6. Untuk database, gunakan MySQL dari InfinityFree dan isi konfigurasi berikut di .env:
|
|
DB_CONNECTION=mysql
|
|
DB_HOST=sql123.infinityfree.com
|
|
DB_PORT=3306
|
|
DB_DATABASE=your_database
|
|
DB_USERNAME=your_username
|
|
DB_PASSWORD=your_password
|
|
7. Setelah upload, buka URL aplikasi Anda.
|