I am trying to push my Django + React app to heroku. I have configured the path for my static files at below in settings.py
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'laundryman_frontend/build/static')
]
The build is successful when I push to heroku but when I run heroku run python manage.py collectstatic
I get the error FileNotFoundError: [Errno 2] No such file or directory: '/app/laundryman_frontend/build/static'
this is what BASE_DIR is set to:
BASE_DIR=os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
My guess is that, Heroku is not looking does not recognise the path that I have set for the static files.
Kindly help me solve this issue