Documentation

Visit Our xCloud Knowledge Base

Here is your one-stop source for in-depth articles, FAQs, and tutorials for you to excel at hosting & managing your websites.


How To Clone A Website From Git Repository With xCloud

With xCloud, you can easily clone a website from Git Repository with xCloud without any complexity at all. The migration process is exceptionally fast, ensuring a rapid transition without introducing any alterations to the code within your Git repository. With the below steps, you can easily migrate an existing WordPress from Git Repository. Letโ€™s follow this guide to get started.

How To Migrate A Site From Git #

Migrating a website from a Git repository with xCloud involves several easy steps. The below guide can help you to understand how you can perform this migration. Follow the steps below to migrate a site from a Git Repository.ย 

Step 1: Select Option To Clone A Website #

First, log into your xCloud account. From the dashboard, click on โ€˜+New Siteโ€™ button. Now, choose a server to add a site and click โ€˜Nextโ€™. Go to โ€˜Clone a Git Repositoryโ€™ option. 

Clone A Website From Git Repository With xCloud

Step 2: Select Destination Server #

From the โ€˜Destinationโ€™ tab, select the destination server to migrate your site. You can keep the server that is already selected, or you can change it from the dropdown. Then, click on โ€˜Nextโ€™.

Clone A Website From Git Repository With xCloud

Step 3: Set Up Domains #

From the โ€˜Domainsโ€™ tab, you will get two options, either you can create your site in a staging domain and refine it until it is ready for launch, or, you can migrate into a new domain to get your site up and running in a new domain. 

Migrate Into A New Domain

To create a site with your live domain, you need to select โ€˜Migrate into a New Domainโ€™ option. Then you have to put โ€˜New Site Titleโ€™ and โ€˜Domain Nameโ€™. 

Clone A Website From Git Repository With xCloud

Here, you need to enable HTTPS to make your website more secure. From the DNS Setup section, toggle on the โ€˜Do You Want To Enable HTTPS?โ€™ option. After enabling it, you will get two options to select. Either choose to use a free SSL certificate issued & managed by xCloud, or, you can provide the certificate and manage it yourself. Select according to your choice.

Clone A Website From Git Repository With xCloud

Staging Environment

Instead of migrating into a new domain, you can select the โ€˜Staging Environmentโ€™ option. xCloud offers a temporary staging domain to make your site live which helps promptly showcase your site’s progress and collect feedback from teammates or clients. Subsequently, you can integrate your custom domain to make the site accessible to your users or visitors. Now, click on โ€˜Nextโ€™. 

Note: For this documentation, we are going with the โ€˜Staging Environmentโ€™ option.

Clone A Website From Git Repository With xCloud

Step 4: Settings To Manage Database #

In the โ€˜Settingsโ€™ tab, you will see the โ€˜PHP Versionโ€™ and โ€˜Site Usersโ€™. You can change these according to your choice. Also, you will see two caching options: โ€˜Full Page Cachingโ€™ and โ€˜Redis Object Cachingโ€™. You can enable both of these options. 

Now, it is time for database management. You will get two options. Either you can create a new database on the server, or, you can add your existing database that is hosted on another server. 

Create Database In Server

If you select this option, you need to get a โ€˜Database Nameโ€™, โ€˜Database Usernameโ€™ and โ€˜Database Passwordโ€™. You can keep these auto-generated credentials, or you can modify them according to your choice. 

Clone A Website From Git Repository With xCloud

Add Your Existing Database

If you select this option, you need to put in a few information and credentials such as โ€˜Database Hostโ€™, โ€˜Database Portโ€™, โ€˜Database Userโ€™, โ€˜Database Nameโ€™, and โ€˜Database Passwordโ€™. Please make sure that the database connection configuration is correct. 

Clone A Website From Git Repository With xCloud

After selecting any one option and providing all essential information and credentials, click on โ€˜Nextโ€™.

Note: For this documentation, we are going with โ€˜Create Database In Serverโ€™ option. 

Step 5: Insert Git Repository Credentials #

In the โ€˜Git Repoโ€™ Tab, add your โ€˜Git Repositoryโ€™ and โ€˜Git Branchโ€™. Also, toggle on โ€˜Enable push to deployโ€™ option. 

Clone A Website From Git Repository With xCloud

Once you enable the โ€˜Push To Deployโ€™, it will generate a โ€˜Deployment URLโ€™. โ€˜Push To Deployโ€™ is a way to automatically deploy your site live once you push code to a Git repo. We need to insert this URL into GitHub. Letโ€™s copy the โ€˜Deployment URLโ€™

Clone A Website From Git Repository With xCloud

Step 6: Add Deployment URL In Git Repository #

Now, go to your Git Repository. From the ‘Code‘ tab, go to the โ€˜Settingsโ€™ tab and click on โ€˜Webhooksโ€™ page from the โ€˜Code and automationโ€™ section of the left navigation. Insert the Deployment URL into the โ€˜Payload URLโ€™ field. Select the โ€˜Application/jsonโ€™ from the โ€˜Content typeโ€™ dropdown. 

Clone A Website From Git Repository With xCloud

Step 7: Add Public Key In Git Repository #

From the xCloud dashboard, copy the โ€˜Public Keyโ€™ to add it to your Git repository as a deploy key. Git migration uses the โ€˜Public Keyโ€™ for SSH authentication. This is necessary to enable xCloud to access your Git repository and clone it. It ensures secure and authorized access for the cloning process.

Clone A Website From Git Repository With xCloud

Now, again, go to your Git Repository. From the ‘Code‘ tab, go to the โ€˜Settingsโ€™ tab and click on โ€˜Deploy Keysโ€™ in the security section of the left navigation. Click on the โ€˜Add Deploy Keyโ€™ button and paste the key that you copied from xCloud. 

Clone A Website From Git Repository With xCloud

After inserting the deploy key in GitHub, click on โ€˜Nextโ€™ on your xCloud settings of the โ€˜Git Repoโ€™ tab.  

Clone A Website From Git Repository With xCloud

Step 8: Confirm Migrating The Website #

Now, to start the migration process, click on the โ€˜Startโ€™ button. 

Clone A Website From Git Repository With xCloud

After clicking on the โ€˜Startโ€™ button, the migration process will start. And, you will see the progress of migrating. 

Clone A Website From Git Repository With xCloud

The Git Repository must contain a wp-config-sample.php. xCloud generates a wp-config.php file from wp-config-sample.php file with the database information.

Note: You can choose whether you want to import your old database or not. So, here is an optional step below. You need to follow this after the migration process is complete. 

How To Import Your Database In SQL Format #

To import the database from your old site, you need to connect your Database client such as TablePlus. From your xCloud dashboard, take the โ€˜Database Connection URLโ€™ from the SSH/sFTP page of your site. 

Clone A Website From Git Repository With xCloud

Now, go to TablePlus dashboard. Click on the โ€˜+โ€™ icon, then click on โ€˜Import from URLโ€™. Paste the Connection URL and hit the โ€˜Import; button. Then click on โ€˜Saveโ€™. 

Clone A Website From Git Repository With xCloud

Now you can delete the tables that were automatically generated by xCloud and import your desired database.

Setup The Site After Completing Git Migration #

When the migration process is complete, you can visit the site. You need to choose the language and provide necessary information such as โ€˜Site Titleโ€™, โ€˜Usernameโ€™, โ€˜Emailโ€™, etc. Now, you can access the site by logging in. 

Clone A Website From Git Repository With xCloud

After Migration Deployment Settings #

After the migration process is complete, you can change the Git Branch, turn on or off the โ€˜Push To Deployโ€™ feature, run Deploy Scripts by inserting the scripts, etc. Go to GitHub page from the site dashboard, update things you want to change, and hit the โ€˜Saveโ€™ button.

Clone A Website From Git Repository With xCloud

Thatโ€™s it! You have successfully cloned a website from the Git repository with xCloud

Still stuck? Contact our dedicated support team for any of your queries.

What are your feelings
Updated on February 3, 2024

Server Name

RAM

SSD

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Newcomer

1GB

25GB

$4.50

$5.00

$6.00

Basic

2GB

55GB

$9.00

$10

$12.00

Standard

4GB

80GB

$18.00

$20

$24.00

Professional

8GB

160GB

$36.00

$40

$48.00

Business

16GB

320GB

$72.00

$80

$96.00

Server Name

RAM

SSD/NVMe

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Lite

1GB

32GB

$5.40

$6.00

$8.00

Personal

2GB

88GB

$16.20

$18.00

$24.00

Growing

4GB

128GB

$21.60

$24.00

$32.00

Elite

8GB

256GB

$43.20

$48.00

$64.00

Titanium

8GB

384GB

$86.40

$96.00

$96.00

Ultimate

32GB

512GB

$172.80

$192.00

$192.00