I'm trying to deploy my project to heroku
, but I faced a problem: there is no CSS
and JS
in deployed site. When I open page source of deployed site, for example here is next script in page source:
<script type="text/javascript"
src="/static/static/scripts/validation.js">
When I go to src link, it shows internal error. I guess that if my scripts were saved somewhere in Inet and src would be a link to it, then it would work correct. But when deploying my site, all my scripts
and CSS
are in static
folder. When run site locally, it's okay, when through heroku
, it can't see CSS
and scripts
. Is there any solution for it?
Aucun commentaire:
Enregistrer un commentaire