From 65d8205dc3dbfc95f187836dc8da6ef08352dd52 Mon Sep 17 00:00:00 2001 From: Hassan Abouelela Date: Fri, 26 Nov 2021 23:18:54 +0300 Subject: Fix Typo In Static Task --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3 From 77da014e5c3e6c7eebf5d4d23d8aca9ca4a500f7 Mon Sep 17 00:00:00 2001 From: Hassan Abouelela Date: Fri, 26 Nov 2021 23:24:08 +0300 Subject: Clean Up Static Deploys Readme Reorganize the static deploy readme, and clarify the content. --- static-builds/README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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. -- cgit v1.2.3