Skip to content

Commit e41f6c6

Browse files
authored
Create provider.md
Added a guide for changing the provider as a we are legally obliged due to the EU Data Act
1 parent 27ffa75 commit e41f6c6

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

content/docs/provider.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
description: 'Frequently Asked Questions about Deploy Now, supported frameworks and technologies and how to deploy them.'
3+
sidebar: 'docs'
4+
prev: '/docs/faq/'
5+
next: '/blog/'
6+
editable: true
7+
---
8+
9+
10+
11+
# Guidance for Migrating a Git-Based Project
12+
13+
> Due to the EU Data Act, we are legally obliged to inform you about how you can move to another provider. However, we hope you like Deploy Now so much that you stay!
14+
15+
Moving a project from IONOS Deploy Now to a new hosting provider is a manageable process. Because Deploy Now utilizes a Git-based workflow, your codebase is portable. The migration primarily involves ensuring your code is on an accessible Git provider, connecting that repository to the new host, and updating your domain's DNS.
16+
17+
## Pre-Migration: Codebase Setup
18+
19+
Before you begin, you must ensure your project's code is located in a repository that your new hosting provider can access.
20+
21+
If your code is already located on a compatible Git provider (such as GitHub), you can proceed directly to the "Migration Process" section.
22+
23+
### Moving Your Codebase to a Different Git Provider
24+
25+
If your code is on a Git provider that is not compatible with your new host, you must first move the repository. The recommended method is to create a "mirror," which duplicates the repository perfectly, including all branches, tags, and commit history.
26+
27+
1. **Create a New Repository:** Start by creating a new, empty repository on the target Git provider (e.g., GitHub).
28+
2. **Mirror the Repository:** This is most commonly done via the command line. You perform a "bare clone" of your existing repository and then "mirror-push" it to the new repository's address. The general commands are:
29+
```bash
30+
git clone --bare [https://old-provider.com/user/repo.git](https://old-provider.com/user/repo.git)
31+
cd repo.git
32+
git push --mirror [https://new-provider.com/user/new-repo.git](https://new-provider.com/user/new-repo.git)
33+
```
34+
3. **Confirm the Move:** Once complete, your repository is fully duplicated on the new Git provider, and you can proceed with the migration.
35+
36+
## Migration Process
37+
38+
1. **Connect & Configure:** Link your Git repository to the new hosting service. In the new service's dashboard, verify that the project's build command and publish directory are correct.
39+
2. **Transfer Environment Variables:** Copy any environment variables from your IONOS project settings and add them to the project settings on the new platform.
40+
3. **Test Deployment:** Use the preview URL provided by the new host to test your site's functionality before proceeding.
41+
42+
## Domain and DNS Update
43+
44+
1. **Add Domain:** Add your custom domain to the project on the new provider's platform.
45+
2. **Update DNS:** Log in to your domain registrar. Replace the existing IONOS DNS records with the new records (`A`, `CNAME`, etc.) supplied by your new provider.
46+
3. **Verify:** After DNS propagation, which can take several hours, confirm that your domain successfully loads the site from the new host.

0 commit comments

Comments
 (0)