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.

Option to automatically configure based on directory layout

See original GitHub issue

My Datasette projects increasingly take on the following structure:

  • metadata.json with the metadata
  • One or more something.db database files
  • A templates/ folder with some custom templates
  • A plugins/ folder with some custom plugins

Then I have to run Datasette like this:

datasette *.db -m metadata.json --template-dir=templates --plugins-dir=plugins

It would be really interesting if Datasette had a special mode where you could point it at a directory with the above layout and it would automatically configure itself based on the contents.

Maybe even allow datasette serve to detect if it was passed a single argument that’s a directory, not a file, and kick in to “directory layout configuration mode” in that case:

datasette .

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
simonwcommented, Apr 23, 2020

As an alternative to --static this could work by letting you create the following:

  • static/css/
  • static/js/

Which would be automatically mounted at /js/... and /css/...

Or maybe just mount static/ at /static/ instead?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Step 4 - Configure Group Policy Settings for Automatic Updates
To use this setting, select Enabled. Then in Options under Configure automatic updating, select one of the options (2, 3, 4, or 5)....
Read more >
Configure the source tree - Apache HTTP Server Version 2.4
Define a directory layout. --enable-layout= LAYOUT: Configure the source code and build scripts to assume an installation tree based on the layout LAYOUT...
Read more >
Sample Ansible setup
Sample directory layout​​ With more tasks to automate, you can consider moving your playbooks into a sub-directory called playbooks/ . If you do...
Read more >
Configuration and credential file settings - AWS Documentation
The AWS CLI stores sensitive credential information that you specify with aws configure in a local file named credentials , in a folder...
Read more >
Configuring Project Structure | PyCharm Documentation
In PyCharm, content is a collection of files with which you are currently working, possibly organized in a hierarchy of subfolders. The top-level...
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