I am running a flask application that works fine when I run it locally. When I deploy it on elastic beanstalk, all of the static assets (css, js, img) return a 404 error.
I am using jinja url_for
in my template files to call the static assets (example below).
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/profile.css') }}">
My directory structure look like this:
/myapplication
/config
/webapp
/static
/css
style.css
profile.css
/js
profile.js
/templates
layout.html
profile.html
login.html
views.py
__init_.py
application.py
Any idea why this will not load on elastic beanstalk?