Bravo Mart

View Categories

cPanel Setup (CLI)

< 1 min read

Access SSH #

  1. Log in to cPanel.
  2. Go to Advanced → Terminal (or use PuTTY/Termius/OpenSSH).
  3. If using an external client:

Upload Project Files #

  1. Upload your project ZIP file (Quick-Ecommerce-Api.zip) to your subdomain folder using cPanel File Manager.
  2. Extract it via SSH:
unzip Quick-Ecommerce-Api.zip -d ./

Ensure files are directly inside the folder (not nested).

Configure Environment File #

Duplicate .env.example as .env.production:

📄
filename.js
cp .env.example .env.production

Update your API URL:

NEXT_PUBLIC_API_URL=https://api.yourdomain.com/api

Install Dependencies #

In the project root folder:

npm install

Build the Project #





npm run build

This generates optimized production files inside .next.

Verify Installation #

Visit your subdomain:





https://admin.yourdomain.com

Leave a Reply