Question

apps not deploying

[2024-03-03 20:41:48] 
[2024-03-03 20:41:48] ╭──────────── buildpack detection ───────────╼
[2024-03-03 20:41:48] │  › using Ubuntu 22.04 stack
[2024-03-03 20:41:48] │  ✘ could not detect app files that match known buildpacks.
[2024-03-03 20:41:48] │    please ensure that the files required by the desired language's buildpack exist in the repo.
[2024-03-03 20:41:48] │    review the buildpack documentation for more info: https://do.co/apps-buildpacks
[]

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.

Bobby Iliev
Site Moderator
Site Moderator badge
March 5, 2024

Hi there Kazi,

As a follow up to our discussion here:

https://www.digitalocean.com/community/questions/how-to-edit-apps-files

It seems there’s a bit of confusion regarding the environment you’re working in. Let’s clarify and address the issues you’re facing:

  1. Editing Files on the App Platform: As I mentioned earlier, any direct modifications made to files within the App Platform console won’t persist across deployments because the filesystem is ephemeral. Your changes will be lost upon redeployment or if the app restarts for any reason.

  2. Disconnected GitHub Repository: You’ve mentioned that your live site has a lot of content that isn’t present in your GitHub repository since you’ve disconnected it. This is a crucial point because any changes you wish to make should ideally be reflected in your source code repository to ensure consistency and ease of deployment.

  3. Error with Buildpack Detection: The error message you’re now seeing suggests there’s an issue with the App Platform recognizing your Django project. This could be due to the structure of your project or missing files that are essential for the buildpack to identify and build your project.

To resolve these issues, here are some steps you can take:

Reconnecting Your Repository:

  • If possible, reconnect your GitHub repository to your DigitalOcean App Platform app. This will allow you to push changes directly from your repository and ensure they’re deployed consistently.
  • Before reconnecting, make sure to commit any changes or content from your live site back to your repository to avoid losing any data.

Addressing the Buildpack Error:

  • Ensure that your Django project has the necessary file structure and files (like manage.py, requirements.txt, etc.) at the root of your repository.
  • Review the DigitalOcean App Platform Buildpacks documentation to ensure your project meets the necessary criteria for the Django buildpack.

Editing Files:

  • Instead of editing files directly on the live server, make changes locally or in a development branch in your repository. Test these changes and then commit and push them to your repository.
  • Once your repository is reconnected and your changes are pushed, trigger a redeployment on the App Platform. This will ensure your changes are persistent and reflected on your live site.

By following these steps, you should be able to maintain your code changes across deployments and avoid issues with ephemeral storage on the App Platform.

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel