Skip to content

Commit 8e6aeed

Browse files
authored
Merge branch 'main' into netlify-logo
2 parents bc1aae0 + 1f334f2 commit 8e6aeed

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

pydis_site/apps/content/resources/guides/pydis-guides/contributing/sir-lancebot.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ toc: 1
1616
- [MacOS Installer](https://git-scm.com/download/mac) or `brew install git`
1717
- [Linux](https://git-scm.com/download/linux)
1818

19+
## Using Gitpod
20+
Sir Lancebot can be edited and tested on Gitpod. Gitpod will automatically install the correct dependencies and Python version, so you can get straight to coding.
21+
To do this, you will need a Gitpod account, which you can get [here](https://www.gitpod.io/#get-started), and a fork of Sir Lancebot. This guide covers forking the repository [here](#fork-the-project). Afterwards, either click the button on Sir Lancebot's README or go to [https://gitpod.io/#/python-discord/sir-lancebot]() and run the following commands in the terminal:
22+
```sh
23+
git remote rename origin upstream
24+
git add remote origin https://github.com/{your_username}/sir-lancebot
25+
```
26+
Make sure you replace `{your_username}` with your Github username. These commands will set Python Discord as the parent repository, and your branch as the fork. This means you can easily grab new changes from the parent repository. Once you set your environment variables to test your code, you are ready to begin contributing to Sir Lancebot.
27+
1928
## Using Docker
2029
Sir Lancebot can be started using Docker. Using Docker is generally recommended (but not strictly required) because it abstracts away some additional set up work.
2130

pydis_site/hosts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
# Internal API ingress (cluster local)
1010
host(r'pydis-api', 'pydis_site.apps.api.urls', name='internal_api'),
1111
host(r'staff', 'pydis_site.apps.staff.urls', name='staff'),
12-
host(r'.*', 'pydis_site.apps.home.urls', name=settings.DEFAULT_HOST)
12+
host(r'www', 'pydis_site.apps.home.urls', name=settings.DEFAULT_HOST),
13+
host(r'.*', 'pydis_site.apps.home.urls', name="fallback")
1314
)

pydis_site/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
ALLOWED_HOSTS = env.list(
5656
'ALLOWED_HOSTS',
5757
default=[
58+
'www.pythondiscord.com',
5859
'pythondiscord.com',
5960
'admin.pythondiscord.com',
6061
'api.pythondiscord.com',

0 commit comments

Comments
 (0)