Manual Deployment Helper

Current Environment

Environment: Live Server

Base URL: https://dev.trimscloud.com/

Database: trimscloud_dev

Configuration for Live Server

Copy this content to setup/config.php:

<?php
// Base configuration for the Pointify
$config = [
    // Base URL - change this based on your environment
    'base_url' => 'https://dev.trimscloud.com/',
    
    // Database configuration
    'db' => [
        'host' => 'localhost',
        'username' => 'trimscloud_dev',
        'password' => 'Pakistan@1947',
        'database' => 'trimscloud_dev'
    ],
    
    // Email configuration for OTP
    'email' => [
        'from' => 'test@trimscloud.com',
        'name' => 'Pointify',
        'smtp' => [
            'host' => 'mail.trimscloud.com',
            'port' => 465,
            'username' => 'test@trimscloud.com',
            'password' => 'Pakistan@1234x',
            'secure' => 'ssl' // Use 'tls' for port 587, 'ssl' for port 465
        ]
    ],
    
    // OTP configuration
    'otp' => [
        'length' => 6,
        'expiry' => 15 // minutes
    ]
];

// Define constants - only if not already defined
if (!defined('BASE_URL')) define('BASE_URL', $config['base_url']);
if (!defined('ADMIN_URL')) define('ADMIN_URL', BASE_URL . 'admin/');
if (!defined('CUSTOMER_URL')) define('CUSTOMER_URL', BASE_URL . 'customer/');
if (!defined('ASSETS_URL')) define('ASSETS_URL', BASE_URL . 'assets/');
?>

Next Steps

  1. Copy the configuration above to setup/config.php
  2. Run the database setup by visiting setup/setup.php
  3. Clear your browser cookies to reset any existing sessions
  4. Log in at admin/login.php