Deployment command

Posted October 20, 2021 133 views
PythonDjangoPython FrameworksDevelopmentDigitalOcean App Platform

As I was following the 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.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

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!