Question

App detection failed

Posted November 14, 2020 169 views
Django

Hello,

I’m trying to launch my first app. It is a (for now) simple Django site. At the third stage I get the following error:

We’re sorry, but we weren’t able to detect anything that the App Platform can currently run in the repository you selected. Please try a different repository.

This is my repository

2 comments
  • Great. Nobody knows why App Platform cannot load a simple Django code.

  • Just commenting here to say I’ve also run into this trying to set up a simple dotnet core app.

    My guess the issue is that my repo doesn’t have a root level Dockerfile. It’s set up a bit like this:

    Repo
    - Project1
      - Dockerfile
    - Project2
      - Dockerfile
    

    Unfortunately the wizard they’ve created doesn’t seem to let you specify that or even get detailed logs on what’s going on so not really a way to get around it. I see that other answers are resorting to the CLI for this but that seems silly since the whole point of App Platform is to not deal with CLI things.

    If this was a config that I could write in code that’d be awesome but if not I’m going to move to AppEngine or LightSail as they at least provide for some in-code configuration.

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.

×
2 answers

@omidshojaee I hit the same speed bump myself, going to try the CLI instead. I’ll report back if it I get it working that way!

For context, i’m trying to deploy a go app that uses a custom config (Dockerfile is not at the root).

Reporting back on this. I was able to get a deployment started via the CLI. doctl apps create --spec .do/app.yaml using this repo https://github.com/digitalocean/sample-dockerfile as a guide. Even though this is not django specific you might need to tweak the .do/*.yaml files for your app. I’m guess the buildpack for your djando app is not registering correctly.

This reference might also come in handy! https://www.digitalocean.com/docs/app-platform/references/app-specification-reference/

Best of luck on your deployment!

Submit an Answer