Documentation with recommendations on running Datasette in production without using Docker
See original GitHub issueI’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:
- Created 4 years ago
- Comments:27 (18 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
Documentation is now live at https://docs.datasette.io/en/latest/deploying.html#running-datasette-using-systemd