Skip to content

Upgrade datasette #7

@camallen

Description

@camallen

Use the latest version of datasette FROM datasetteproject/datasette:0.56 or above and revert back to using the configuration directory mode, https://docs.datasette.io/en/latest/settings.html#configuration-directory-mode

  1. update the compose cmd
    command: ["datasette", "-p", "80", "-h", "0.0.0.0", "--cors", "-i", "databases/darien.db", "-i", "databases/gorongosa.db", "-i", "databases/kenya.db", "--plugins-dir=databases/plugins", "--inspect-file=databases/inspect-data.json", "--setting", "sql_time_limit_ms", "60000", "--setting", "max_returned_rows", "2000", "--setting", "hash_urls", "1"]
  2. update the CMD in docker file
    CMD ["datasette", "-p", "80", "-h", "0.0.0.0", "--cors", "-i", "databases/darien.db", "-i", "databases/gorongosa.db", "-i", "databases/kenya.db", "--plugins-dir=databases/plugins", "--inspect-file=databases/inspect-data.json", "--setting", "sql_time_limit_ms", "60000", "--setting", "max_returned_rows", "2000", "--setting", "hash_urls", "1"]

Note: it appears that version 0.56 breaks the use of apt update / install etc in the base image, see simonw/datasette#1296 for how to fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions