How to deploy django app to D.O. app platform

Connected Tutorial
This question is a follow-up to this tutorial:

Hello, I have been following the tutorial to the “tee”, but am not able to deploy my app. First I tried with an already working app on my local dev environment, but had no luck. Subsequently, I attempted to launch a django app following all your instructions for a new django app, still I am getting the following error:

` alerts:

  • rule: DOMAIN_FAILED databases:
  • engine: PG name: cis114app num_nodes: 1 size: db-s-dev-database version: “12” name: cis-114-app region: nyc services:
  • environment_slug: python envs:
    • key: DATABASE_URL scope: RUN_AND_BUILD_TIME value: ${cis114app.DATABASE_URL}
    • key: DEBUG scope: RUN_AND_BUILD_TIME value: “True”
    • key: DATABASE_URL scope: RUN_TIME value: ${cis114app.DATABASE_URL} github: branch: main deploy_on_push: true repo: reevotek/cis114-app http_port: 8080 instance_count: 1 instance_size_slug: basic-xxs name: cis-114-app routes:
    • path: / run_command: gunicorn --worker-tmp-dir /dev/shm cis114_app.wsgi source_dir: / `

Please advice.

Best regards, Jorge

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

👋 @reevotekdev

I don’t see any immediate issues with the configs you posted. Check the Deployment -> Deploy logs to see if there are any errors that might help identify the problem. In the past I’ve seen the wrong reference to the .wsgi file in the run command, ensure that is correct.