Skip to content
This repository was archived by the owner on May 20, 2021. It is now read-only.
This repository was archived by the owner on May 20, 2021. It is now read-only.

Cannot make it work with DEBUG=False on Heroku #11

Description

@filipeximenes

I'm trying to serve statics on heroku with DEBUG=False. When DEBUG is True everything works perfectly so it is when I run my application locally with Heroku's Foreman. Collectstatic runs with no problems in both ambients.
Forman works with the following setting:

STATIC_ROOT = root('staticfiles')
STATIC_URL = '/static/'

But i've tried setting it with:

STATIC_ROOT = 'staticfiles'
STATIC_URL = '/static/'

with no success.

My app is structured in the following way:

Procfile
requirements.txt
projetc/
   manage.py
   project/
   staticfiles/

I'm setting --pythonpath to the project folder in the procfile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions