Skip to content

Website Deployment

O edited this page Dec 23, 2025 · 1 revision

O International Website Deployment Guide

Quick Start

  1. Run the deployment script for the first time (it will create a configuration file):

    ./deploy_website.sh
  2. Edit the configuration file .hostinger_config with your Hostinger credentials:

    nano .hostinger_config
  3. Run the deployment script again:

    ./deploy_website.sh

Getting Your Hostinger Credentials

  1. Log in to your Hostinger hPanel
  2. Go to Files β†’ FTP Accounts
  3. Find your FTP account details:
    • FTP Host (e.g., ftp.yourdomain.com or IP address)
    • FTP Username
    • FTP Password

Configuration Options

Edit .hostinger_config with your settings:

# Connection method: ftp, sftp, or ssh
DEPLOY_METHOD="sftp"  # Recommended: more secure than ftp

# Hostinger server details
HOSTINGER_HOST="ftp.yourdomain.com"  # Your FTP hostname
HOSTINGER_USER="your_ftp_username"
HOSTINGER_PASS="your_ftp_password"

# Remote directory (usually public_html for main domain)
REMOTE_DIR="/public_html"

# Domain name (for display purposes)
DOMAIN="o.international"

Deployment Methods

SFTP (Recommended)

  • Most secure
  • Uses SSH encryption
  • Requires rsync or sftp tool

FTP

  • Faster but less secure
  • Requires lftp tool

SSH

  • Direct SSH/SCP upload
  • Most flexible
  • Requires SSH access enabled

What Gets Deployed

The script deploys:

  • o_website_prototype.html β†’ index.html (main website)
  • dist/ folder β†’ dist/ (logos and images)

Troubleshooting

"Connection refused" or "Permission denied"

  • Check your FTP credentials in Hostinger hPanel
  • Ensure FTP/SFTP access is enabled for your account
  • Verify the remote directory path (/public_html is typical)

"Command not found" (lftp, rsync, sshpass)

  • macOS: Install via Homebrew: brew install lftp rsync sshpass
  • Linux: Install via package manager:
    • Ubuntu/Debian: sudo apt-get install lftp rsync sshpass
    • CentOS/RHEL: sudo yum install lftp rsync sshpass

Files not appearing on website

  • Clear your browser cache
  • Check file permissions on Hostinger (should be 644 for files, 755 for directories)
  • Verify the remote directory path is correct

Manual Deployment Alternative

If you prefer to upload manually:

  1. Log in to Hostinger File Manager (hPanel β†’ Files β†’ File Manager)
  2. Navigate to public_html/
  3. Upload o_website_prototype.html and rename it to index.html
  4. Upload the entire dist/ folder

Security Note

⚠️ Important: Add .hostinger_config to your .gitignore to avoid committing credentials:

echo ".hostinger_config" >> .gitignore

Clone this wiki locally