question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation with recommendations on running Datasette in production without using Docker

See original GitHub issue

I’ve got some SQLite databases too big to push to Heroku or the other services with built-in support in datasette.

So instead I moved my datasette code and databases to a remote server on Kimsufi. In the folder containing the SQLite databases I run the following code.

nohup datasette serve -h 0.0.0.0 *.db --cors --port 8000 --metadata metadata.json > output.log 2>&1 &.

When I go to http://my-remote-server.com:8000, the site loads. But I know this is not a good long-term solution to running datasette on this server.

What is the “correct” way to have this site run, preferably on server port 80?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:27 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
JesperTreetopcommented, Jul 8, 2019

@chrismp: Ports 1024 and under are privileged and can usually only be bound by a root or supervisor user, so it makes sense if you’re running as the user chris that port 8000 works but 80 doesn’t.

See this generic question-and-answer and this systemd question-and-answer for more information about ways to skin this cat. Without knowing your specific circumstances, either extending those privileges to that service/executable/user, proxying them through something like nginx or indeed looking at what the nginx systemd job has to do to listen at port 80 all sound like good ways to start.

At this point, this is more generic systemd/Linux support than a Datasette issue, which is why a complete rando like me is able to contribute anything.

0reactions
simonwcommented, Oct 8, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Simon Willison - Datasette documentation
An open source multi-tool for exploring and publishing data. Datasette is a tool for exploring and publishing data.
Read more >
Datasette documentation
Datasette is a tool for exploring and publishing data. It helps people take data of any shape or size and publish that as...
Read more >
Getting started - Datasette documentation
Now you can run Datasette against a SQLite file on your computer using the following command: datasette path/to/database.db. This will start a web...
Read more >
Changelog - Datasette documentation
Fixed a bug where datasette --root , when running in Docker, would only output the URL to sign in as root when the...
Read more >
Datasette Documentation
with structured data as productive as possible. Explore a demo ... To run Datasette without Docker you will need Python 3.6 or higher....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found