Skip to content

Commit ad00f7e

Browse files
nickmoretonthibaudcolas
authored andcommitted
add .gitpod.yml
1 parent 05647bd commit ad00f7e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.gitpod.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
ports:
2+
- port: 8000
3+
onOpen: open-preview
4+
5+
tasks:
6+
- init: |
7+
clear
8+
pip install poetry
9+
poetry install
10+
gp sync-done python
11+
command: poetry run django-admin runserver --settings=tests.settings.dev --pythonpath=.
12+
name: Runserver
13+
14+
- init: |
15+
clear
16+
nvm install
17+
npm install
18+
command: npm run start
19+
name: Node
20+
openMode: split-right
21+
22+
- init: |
23+
clear
24+
gp sync-await python
25+
command: poetry run ./runtests.py
26+
name: Tests
27+
openMode: split-right
28+
29+
- init: |
30+
clear
31+
command: |
32+
echo "There are 3 terminals ready to use"
33+
echo "1. Runserver: is running the django dev-server on http://127.0.0.1:8000"
34+
echo "2. Tests: will run the tests once and wait for 'poetry run ./runtests.py' to run the tests again"
35+
echo "3. Node: will run 'npm run start' and watch files for changes"
36+
echo "4. Bash: is this terminal and can be use to run other adhoc commands"
37+
echo "Try out the render_patterns command: 'poetry run django-admin render_patterns --settings=tests.settings.dev --pythonpath=.' and look in the 'dpl-rendered-patterns' folder"
38+
openMode: tab-after

0 commit comments

Comments
 (0)