aeris22’s avataraeris22’s Twitter Archive—№ 117,047

      1. …in reply to @tbroyer
        @tbroyer Ben je ne vois pas comment tu fais sinon. $ docker run --rm -it glitchtip/glitchtip find -name "index.html" ./static/index.html ./dist/index.html
    1. …in reply to @aeris22
      @tbroyer Ça veut dire qu’il faut servir au moins /index.html depuis /static (donc un root /…/static/)
  1. …in reply to @aeris22
    @tbroyer $ docker run --rm -it glitchtip/glitchtip grep static static/index.html static/styles.d4935d7b9c5d1450.css static/runtime.f666a73488654248.js Et le reste /static/ depuis /static aussi (via location /static/ { alias /…/static/ })
    1. …in reply to @aeris22
      @tbroyer Et le truc est que justement le front n’est pas du django, qui ne sert que pour la partie API, mais une single page app servie depuis le /static/…
      1. …in reply to @aeris22
        @tbroyer Le front est là gitlab.com/glitchtip/glitchtip-frontend et c’est du node généré statiquement à la fin.
        1. …in reply to @aeris22
          @tbroyer Du coup tu as le front sur / qui tape sur /static/index.html, qui sert une singlepage app qui tape ses assests sur /static/…
          1. …in reply to @aeris22
            @tbroyer Et la single-page tape ensuite en XHR sur l’api django sur /api/ & cie.