Connected Tutorial(This question is a follow-up to this tutorial):
How To Deploy a Django App on App PlatformAs I was following the https://www.digitalocean.com/community/tutorials/how-to-deploy-django-to-app-platform manual I noticed that the build command is not provided, it just says it has to point to as {project-name}.wsgi file, which was never referred before. As i did everything my build crashed with the error: Command not found, which is obvious, because I don’t know which build command to provide. Please advice.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey there!
That tutorial does use Gunicorn which would require a run command for it to work properly. If you followed that tutorial as written then your project should be named: django_app.wsgi and you would set the run command to: gunicorn --worker-tmp-dir /dev/shm django_app.wsgi If you named your project something else then you would update the run command to use the correct project name. There isn’t a build command needed. You can set the run command for your app under the settings section of your app.
Hope it helps! Nate
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.