Deploying Custom Applications on Jiinubi Cloud
Jiinubi Cloud allows you to host your custom web applications with full control over your environment. Whether it’s a PHP site, Node.js app, Python backend, or a full-stack solution, our platform provides the infrastructure to deploy, scale, and manage your applications securely.
1. Preparing Your Application
Before deploying, ensure your application meets these requirements:
- Dependencies: List all libraries and packages your app needs (e.g., npm packages for Node.js, Composer packages for PHP).
- Environment Variables: Identify any environment variables your app requires, such as database credentials, API keys, or secret tokens.
- Configuration Files: Ensure your app’s config files (e.g., .env, config.yaml) are correctly set for the production environment.
- Database Setup: If your app uses MySQL, PostgreSQL, or MongoDB, prepare the schema and migration scripts.
2. Uploading Your Application
Jiinubi Cloud offers multiple ways to upload your application:
- Via SFTP: Connect to your server using an SFTP client (FileZilla, Cyberduck) and upload your app files to the desired directory.
- Git Integration: Deploy directly from GitHub, GitLab, or Bitbucket. This allows continuous deployment and version control.
- cPanel File Manager: For smaller projects, you can upload a ZIP archive via cPanel and extract it on the server.
3. Setting Up the Runtime Environment
Depending on your application stack, configure the environment as follows:
- PHP: Select the PHP version in cPanel or .htaccess. Ensure required extensions (mbstring, curl, gd, etc.) are installed.
- Node.js: Use Jiinubi Cloud’s Node.js App feature in cPanel to define the app’s root folder, startup file, and environment variables.
- Python: Use the Python App feature to create a virtual environment, install dependencies with pip, and define your WSGI entry point.
- Databases: Create a database in cPanel, update your app’s config files, and run migration scripts.
4. Configuring Domains and SSL
Once your app is uploaded, point a domain or subdomain to your app’s folder:
- Subdomain: Use cPanel → Subdomains to create a new subdomain (e.g., app.yourdomain.com).
- Domain: Update your DNS records to point the A record to your Jiinubi Cloud server IP.
- SSL: Enable Free SSL via Let’s Encrypt in cPanel. This ensures HTTPS and protects user data.
5. Deploying & Testing
After configuration, start your application and verify it works correctly:
- Access the URL and check for errors.
- Check server logs (cPanel → Metrics → Errors) to debug issues.
- Run automated tests if your app has a test suite.
- Ensure database connections and API integrations are functioning.
6. Scaling & Performance Tips
- Caching: Use server-side caching (LiteSpeed Cache, Redis, or Memcached) to improve speed.
- CDN: Use Cloudflare or another CDN to serve static assets globally.
- Monitor Resources: Watch CPU, RAM, Disk Space, and Bandwidth in cPanel → Metrics to prevent outages.
- Automatic Backups: Schedule regular backups for both files and databases.
7. Security Best Practices
- Enable 2FA on your Jiinubi account and SSH access.
- Use strong passwords and unique API keys.
- Keep your dependencies updated to prevent vulnerabilities.
- Limit permissions for files and directories (755 for folders, 644 for files).
Test in a staging environment before deploying to production. Jiinubi Cloud supports subdomains or separate folders for staging setups.
By following these steps, you can deploy any custom application securely and efficiently on Jiinubi Cloud, leveraging our robust infrastructure and cPanel tools.