You can achieve the same thing using a Dockerfile on Managed VMs (now called App Engine Flexible Environment). Check out the example Dockerfile <https://github.com/GoogleCloudPlatform/getting-started-django/blob/master/Dockerfile> from the getting-started-django <https://github.com/GoogleCloudPlatform/getting-started-django> project, and the docs for Custom Runtimes <https://cloud.google.com/appengine/docs/flexible/custom-runtimes/> for more info.
On Thursday, March 31, 2016 at 4:06:20 PM UTC-4, Aaron Madison wrote: > > 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 > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/b242f643-4933-4802-8a1d-e9acda6bbb6f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
