chihacknight / chicago-elections-archive

Explore precinct-level results from historical Chicago elections
https://chicago-election-archive.netlify.app
MIT License
0 stars 0 forks source link

removed poetry in favor of pip, using node 18 #14

Closed derekeder closed 3 weeks ago

derekeder commented 1 month ago

Netlify reqiures Node 18 and building as it is currently set up fails. This PR updates the Dockerfile to use node 18 and removes poetry as a build dependency and moves everything over to pip.

Successful deploy to Netlify took a bit of trial and error with the build and site commands, but these settings look to be what we need:

Figuring out the dist folder was determined by the settings at the bottom of .eleventy.js:

return {
    dir: {
      input: "site/",
      output: "dist",
      includes: "_includes",
      layouts: "_layouts",
    },
    templateFormats: ["html", "md", "njk", "11ty.js"],
    htmlTemplateEngine: "njk",
    passthroughFileCopy: true,
  }
netlify[bot] commented 1 month ago

Deploy Preview for chicago-election-archive ready!

Name Link
Latest commit 3ba40498925a7b920d7cae8ad52eea130941731d
Latest deploy log https://app.netlify.com/sites/chicago-election-archive/deploys/67184195cfda6f00081f6e26
Deploy Preview https://deploy-preview-14--chicago-election-archive.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.