chore(pipenv): use pipenv for setting up venvs

Also swapped commands too on Gitpod btw.

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2023-09-24 16:17:38 +00:00
parent 4958ff2427
commit 4ec9834718
2 changed files with 90 additions and 93 deletions

View file

@ -10,14 +10,9 @@ image: ghcr.io/ajhalili2006/ajhalili2006.github.io/devenv:commit-8e8a1e4d9dea4af
tasks:
- init: |
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
pipenv install
command: |
source .venv/bin/activate
# since it might not be carried on venv shell, we did this instead
FF_ENABLE_COMMIT_DATA=true mkdocs serve
FF_ENABLE_COMMIT_DATA=true pipenv run -- mkdocs serve --watch overrides --watch-theme --livereload
name: site-localdev
env:
FF_ENABLE_COMMIT_DATA: "true" # Required to use git-revision-date-localized, like in prod.