kopia lustrzana https://github.com/wagtail/bakerydemo
Fix and update Gitpod (#327)
* Preserve pip modules * Pipe commands * Add gitpod to trusted origins * Use VSCode python extensionpull/329/head
rodzic
4fb21cd9f8
commit
9edeb75739
|
@ -0,0 +1,4 @@
|
|||
FROM gitpod/workspace-full
|
||||
ENV PYTHONUSERBASE=/workspace/.pip-modules
|
||||
ENV PATH=$PYTHONUSERBASE/bin:$PATH
|
||||
ENV PIP_USER=yes
|
20
.gitpod.yml
20
.gitpod.yml
|
@ -1,16 +1,22 @@
|
|||
image:
|
||||
file: .gitpod.dockerfile
|
||||
ports:
|
||||
- port: 8080
|
||||
onOpen: open-preview
|
||||
tasks:
|
||||
- init: >
|
||||
cp bakerydemo/settings/local.py.example bakerydemo/settings/local.py &&
|
||||
echo "DJANGO_SETTINGS_MODULE=bakerydemo.settings.local" > .env &&
|
||||
python -m pip install -r requirements.txt &&
|
||||
python manage.py makemigrations &&
|
||||
python manage.py migrate &&
|
||||
- init: |
|
||||
cp bakerydemo/settings/local.py.example bakerydemo/settings/local.py
|
||||
echo "DJANGO_SETTINGS_MODULE=bakerydemo.settings.local" > .env
|
||||
python -m pip install -r requirements.txt
|
||||
python manage.py makemigrations
|
||||
python manage.py migrate
|
||||
python manage.py load_initial_data
|
||||
command: >
|
||||
echo "CSRF_TRUSTED_ORIGINS = ['https://*.gitpod.io']" >> bakerydemo/settings/local.py
|
||||
command: |
|
||||
python manage.py runserver 0.0.0.0:8080
|
||||
github:
|
||||
prebuilds:
|
||||
pullRequestsFromForks: true
|
||||
vscode:
|
||||
extensions:
|
||||
- ms-python.python
|
||||
|
|
Ładowanie…
Reference in New Issue