-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.yml
35 lines (29 loc) · 1.05 KB
/
.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
26
27
28
29
30
31
32
33
34
35
image:
file: .gitpod.Dockerfile
# List the start up tasks. Learn more: https://www.gitpod.io/docs/configure/workspaces/tasks
tasks:
- name: Script Task
init: |
pip3 install cookiecutter
read -p "project_folder[my_awesome_project]: " projectvar
projectvar="${VARIABLE:-my_awesome_project}"
cookiecutter gh:cookiecutter/cookiecutter-django
cd $projectvar
python3 -m venv env
source env/bin/activate
pip3 install -r requirements/local.txt
echo 'ALLOWED_HOSTS+=["*"]' >> config/settings/local.py
#cd <what you have entered as the project_slug at setup stage>
#pip install -r requirements/local.txt
command: |
python manage.py runserver
# List the ports to expose. Learn more: https://www.gitpod.io/docs/configure/workspaces/ports
ports:
- name: Django
port: 8000
visibility: private
onOpen: open-preview
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
vscode:
extensions:
- ms-python.python