diff options
author | 2021-11-26 21:28:41 +0100 | |
---|---|---|
committer | 2021-11-26 21:28:41 +0100 | |
commit | 8ef403dace6783dd12a15d44fc43439cedd8ea6c (patch) | |
tree | 00e3718d7b2f4ad0219b6115a52b6a2376e30c6d | |
parent | Merge pull request #572 from D0rs4n/pr/deleterolesignal (diff) | |
parent | Clean Up Static Deploys Readme (diff) |
Merge pull request #629 from python-discord/static-docs
Clean Up Static Deployment Docs
-rw-r--r-- | pyproject.toml | 2 | ||||
-rw-r--r-- | static-builds/README.md | 14 |
2 files changed, 9 insertions, 7 deletions
diff --git a/pyproject.toml b/pyproject.toml index 2f1322e3..2de2bf35 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,4 +54,4 @@ test = "coverage run manage.py test" report = "coverage report -m" lint = "pre-commit run --all-files" precommit = "pre-commit install" -static = "python mange.py distill-local build --traceback --force" +static = "python manage.py distill-local build --traceback --force" diff --git a/static-builds/README.md b/static-builds/README.md index b5cba896..9b86ed08 100644 --- a/static-builds/README.md +++ b/static-builds/README.md @@ -17,19 +17,15 @@ They are split into two parts: To get started with building, you can use the following command: ```shell +poetry install python -m pip install httpx==0.19.0 -python manage.py distill-local build --traceback --force --collectstatic +poetry run task static ``` Alternatively, you can use the [Dockerfile](/Dockerfile) and extract the build. Both output their builds to a `build/` directory. -> Warning: If you are modifying the [build script](./netlify_build.py), make sure it is compatible with Python 3.8. - -Note: The build script uses [nightly.link](https://github.com/oprypin/nightly.link) -to fetch the artifact with no verification. - ### Deploying To Netlify To deploy to netlify, link your site GitHub repository to a netlify site, and use the following settings: @@ -46,3 +42,9 @@ Environment Variables: Note that at this time, if you are deploying to netlify yourself, you won't have access to the fa-icons pack we are using, which will lead to many missing icons on your preview. You can either update the pack to one which will work on your domain, or you'll have to live with the missing icons. + + +> Warning: If you are modifying the [build script](./netlify_build.py), make sure it is compatible with Python 3.8. + +Note: The build script uses [nightly.link](https://github.com/oprypin/nightly.link) +to fetch the artifact with no authentication. |