xNightR00T File Manager

Loading...
Current Directory:
Name Size Permission Modified Actions
Loading...
$ Waiting for command...
home/manjaro.store/public_html/DEPLOYMENT_GUIDE.md000064400000005257152413112570015511 0ustar00# 🚀 Deployment Guide: Local to Live This guide explains how to move your fully migrated Active eCommerce v10.2.2 (Project "nothing") to your live server. ## 📦 1. Prepare Your Artifacts (Local Machine) I have already generated the database dump for you. 1. **Database File**: - `C:\laragon\www\nothing\production_ready_ghana.sql` - This file contains the v10.2.2 schema + your migrated data + correct "Manjaro" settings. 2. **Code Files**: - You need to Zip the contents of `C:\laragon\www\nothing`. - **Exclude** these folders to save space: - `node_modules` - `.git` (if present) - `backups` (generated during migration) - **CRITICAL**: Ensure `public/uploads` contains all your images. If you haven't copied the old images yet, drag them from your old project into `C:\laragon\www\nothing\public\uploads` before zipping. ## ☁️ 2. Upload to Server ### Method A: cPanel / Shared Hosting 1. **Files**: - Go to **File Manager**. - Upload your `project.zip` to the `public_html` (or your subdomain folder). - **Extract** the zip. 2. **Database**: - Go to **MySQL Databases**. Create a new database (e.g., `myuser_ecommerce`) and a user. Note the password. - Go to **phpMyAdmin**. Select the new database. - Click **Import** -> Upload `production_ready_ghana.sql`. ### Method B: VPS (Ubuntu/Nginx/Apache) 1. **Files**: SCP or SFTP the zip to `/var/www/yoursite`. Unzip it. 2. **Permissions**: Run `chown -R www-data:www-data /var/www/yoursite`. 3. **Database**: ```bash mysql -u root -p new_database_name < production_ready_ghana.sql ``` ## ⚙️ 3. Configuration (Live Server) 1. **Edit .env**: - Locate the `.env` file in the root of your live site. - Update the database credentials: ```ini DB_DATABASE=your_live_db_name DB_USERNAME=your_live_db_user DB_PASSWORD=your_live_db_password APP_URL=https://your-live-domain.com APP_ENV=production APP_DEBUG=false ``` 2. **Symlink Storage** (Crucial for images): - **cPanel**: Often done automatically, but if images break, you may need a Cron Job: `ln -s /path/to/storage/app/public /path/to/public/public/storage`. - **VPS (SSH)**: ```bash php artisan storage:link ``` 3. **Clear Cache**: - If you have SSH access: `php artisan optimize:clear`. - If cPanel only: You can create a route in `routes/web.php` temporarily to run this command, or delete the files in `bootstrap/cache/*.php`. ## ✅ 4. Final Verification - Log in to your live admin panel. - Check footer version is `10.2.2`. - Check products and orders.