forked from wagtail/guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
25 lines (25 loc) · 829 Bytes
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
image:
file: .gitpod.dockerfile
ports:
- port: 8080
onOpen: open-preview
tasks:
- init: |
npm ci
npm run build
curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.2.2 python -
poetry install
poetry run python manage.py migrate
poetry run python manage.py createcachetable
poetry run python manage.py buildfixtures
echo "from django.contrib.auth import get_user_model; get_user_model().objects.create_superuser('admin', '', 'changeme')" | poetry run python manage.py shell
echo "CSRF_TRUSTED_ORIGINS = ['https://*.gitpod.io']" >> apps/guide/settings/local.py
command: |
cd /workspace/guide
poetry run python manage.py runserver 0.0.0.0:8080
github:
prebuilds:
pullRequestsFromForks: true
vscode:
extensions:
- ms-python.python