2
0

.gitpod.yml 651 B

12345678910111213141516171819202122
  1. image:
  2. file: .gitpod.dockerfile
  3. ports:
  4. - port: 8080
  5. onOpen: open-preview
  6. tasks:
  7. - init: |
  8. cp bakerydemo/settings/local.py.example bakerydemo/settings/local.py
  9. echo "DJANGO_SETTINGS_MODULE=bakerydemo.settings.dev" > .env
  10. python -m pip install -r requirements.txt
  11. python manage.py makemigrations
  12. python manage.py migrate
  13. python manage.py load_initial_data
  14. echo "CSRF_TRUSTED_ORIGINS = ['https://*.gitpod.io']" >> bakerydemo/settings/local.py
  15. command: |
  16. python manage.py runserver 0.0.0.0:8080
  17. github:
  18. prebuilds:
  19. pullRequestsFromForks: true
  20. vscode:
  21. extensions:
  22. - ms-python.python