You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/guides/railway.md
+28-20Lines changed: 28 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,30 +9,38 @@ tags: guides
9
9
10
10
## Getting the CNAME Record
11
11
12
-
1. Navigate to the [dashboard](https://railway.app/dashboard)
13
-
2. Navigate to the project.
14
-
3. Navigate to the service.
15
-
4. Switch to the **Settings** tab.
16
-
5. Click on **+ Custom Domain** button.
17
-
6. Enter the `is-a.dev` subdomain you want to use.
18
-
7. Copy the **Value** field.
19
-
8. For the domain, make the json like this:
20
-
```json
21
-
{
22
-
"owner": {
23
-
"username": "your-github-username",
24
-
"email": "your-email@example.com"
25
-
},
26
-
"records": {
27
-
"CNAME": "the-value-railway-gave-you"
12
+
1. Navigate to the [dashboard](https://railway.app/dashboard) > project > service
13
+
2. Switch to the **Settings** tab and click on **+ Custom Domain** button.
14
+
3. Enter the `is-a.dev` subdomain you want to use (ex: `subdomain.is-a.dev`)
15
+
4. Copy the **Value** field for `@` and create `subdomain.json`
16
+
```json
17
+
{
18
+
"owner": {
19
+
"username": "your-github-username",
20
+
"email": "your-email@example.com"
21
+
},
22
+
"records": {
23
+
"CNAME": "the-value-railway-gave-you"
24
+
}
28
25
}
29
-
}
30
-
```
31
-
9. After you have made the file, you should make a pull request.
26
+
```
27
+
5. Copy the **Value** field for `_railway-verify` and create `_railway-verify.subdomain.json`
28
+
```json
29
+
{
30
+
"owner": {
31
+
"username": "your-github-username",
32
+
"email": "your-email@example.com"
33
+
},
34
+
"records": {
35
+
"TXT": "the-value-railway-gave-you"
36
+
}
37
+
}
38
+
```
39
+
6. After you have made the two files, you should make a pull request.
40
+
32
41
!!!
33
42
**Adding the website preview is mandatory**, since the CNAME value Railway gives you doesn't actually show you the website you are running.
34
43
!!!
35
44
36
-
37
45
-**If the PR has been merged, the DNS records will be updated in a few minutes.**
38
46
-**If the PR has been merged but the DNS records haven't updated and you have waited 48 hours, [open a GitHub issue](https://github.com/is-a-dev/register/issues/new/choose) or a help thread in the is-a.dev [Discord server](https://discord.gg/is-a-dev-830872854677422150).**
0 commit comments