I'm looking to switch from AWS to GCP with Managed VMs, CloudSQL, and Django and have a question on deployment.
With our AWS Elastic beanstalk we include some config in out .ebextensions:
| container_commands: |
| 01_upgrade: |
| command: "/opt/python/run/venv/bin/pip install -r requirements.txt --upgrade" |
| 02_syncdb: |
| command: "/opt/python/run/venv/bin/python manage.py syncdb --noinput" |
| leader_only: true |
| 03_migrate: |
| command: "/opt/python/run/venv/bin/python manage.py migrate --noinput" |
| leader_only: true |
| 04_collectstatic: |
| command: "/opt/python/run/venv/bin/python manage.py collectstatic --noinput" |
Is there an equivalent when deploying with `gcloud preview app deploy`?
In the interim I've ran the migration connecting my machine to the remote database, but that can run very slow.
Thanks for any direction,
~ aaron