forked from zetonteam/zeton_full_stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitpod.yml
More file actions
17 lines (16 loc) · 668 Bytes
/
.gitpod.yml
File metadata and controls
17 lines (16 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ports:
- port: 3000
onOpen: open-browser
visibility: public
- port: 8000
visibility: public
tasks:
- name: Init env
command: |
sed -i -e 's#git@github.com:#https://github.com/#' .gitmodules .git/config && \
git submodule update && \
sed -i -e "s#http://localhost:8000#$(gp url 8000)#" -e 's#\(python zeton_django/manage.py migrate\)#\1; python zeton_django/manage.py loaddata zeton_django/fixtures/*.json#' docker-compose.yml && \
sed -i -e "s#ALLOWED_HOSTS = \[\]#ALLOWED_HOSTS = \['*'\]#" zeton_django/zeton_backend/settings.py && \
docker-compose pull && \
docker-compose build && \
docker-compose up