uploads/ directory is not created automatically
I can't upload files to a decent 80 db/ instance unless I run mkdir -p db/uploads/ first. Oops!
Ah right thanks for filing an issue for this! I've meant to for a while.
For what it's worth, I think it makes sense to create the uploads directory, but not its parent db directory (which is passed through $ decent CLI args).
not its parent
And throw directory not found: db/?
@heyitsmeuralex Better to do a graceful crash: Database folder not found: (db path) (and then process.exit 1).
The main reason is so that if somebody accidentally does $ decent 80 db from the wrong directory, and then they're confused as to why the database is totally empty - they might think that, for some reason, their database was reset!
graceful crash
@decent/cli should handle that. @decent/server should just throw an Error.