Skip to content

Commit

Permalink
Merge pull request #41 from cupglassDEV/main
Browse files Browse the repository at this point in the history
(Second PR) Change the replit tutorial since it was too outdated
  • Loading branch information
CuteDog5695 authored Oct 29, 2024
2 parents 7d327d3 + 6462b40 commit 6630e94
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
Binary file added src/docs/img/REPLIT_DOMAINPOPUP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 14 additions & 6 deletions src/docs/replit/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
## Creating a project
Follow the instructions in the [Replit Workspace Guide](https://docs.replit.com/programming-ide/introduction-to-the-workspace#how-to-create-a-repl) on how to create a project.

<!-- You need replit core, since they have a limit to 3 workspaces on free account, and deployment needs to be purchased also -->
## Connect your repl to your is-a.dev subdomain
Follow the instructions in the [Replit Custom Domains Guide](https://docs.replit.com/hosting/custom-domains#connecting-your-domain-to-your-repl).

Only follow the "Connecting your domain to your repl" section, then return to this guide for the next steps.
Since Replit Workspaces has changed alot, follow the instructions in the [Replit Deployment Custom Domains Guide](https://docs.replit.com/cloud-services/deployments/custom-domains). You may need the Replit Deployment subscription to do so

## Creating the domain file
Create a JSON file inside `domains` directory (`domains/<subdomain>.json`) with the following content:
After clicking "Link a Domain" button on your Replit Deployment menu and already typed the domain, you will see this
![image](../img/REPLIT_DOMAINPOPUP.png)
(The example screenshot uses their own domain, `kaboom.thedevbird.com`. But in our case, it should be `<subdomain>.is-a.dev`)

**Note:** Do not add any TXT records, even if Replit instructs you to do so.
Create a JSON file inside `domains` directory (`domains/<subdomain>.json`) and submit a pull request:

<!-- They are now using TXT for verification, not just `replit-user=cupglassdev`. When deleted, you cant use it in replit -->
```json
{
"owner": {
Expand All @@ -21,10 +23,16 @@ Create a JSON file inside `domains` directory (`domains/<subdomain>.json`) with
"twitter": "<twitter-username>"
},
"record": {
"CNAME": "<siteid>.id.repl.co"
"A": ["<IP here, listed on the A Record>"],
"TXT": "<TXT value here, listed on the TXT Record>"

}
}
```
<!-- as EducatedSuddenBucket's suggestion -->
Make sure to provide the preview on the pull request (not on your JSON files)

Note: In the owner section, you can add any social media handle, such as Discord. If you add another social media account, you can omit the email and Twitter fields. However, the GitHub username is mandatory. Don't forget to provide a preview of your site in your pull request.

## Configuring
- After your pull request has been merged into the main repository you should be able to visit your new is-a.dev domain and it should show you your replit site,
Expand Down

0 comments on commit 6630e94

Please sign in to comment.