libertysoft3 / saidit

The reddit open source fork powering SaidIt
https://saidit.net
Other
228 stars 40 forks source link

Installer: usable install without running 'Install sample data' #43

Open libertysoft3 opened 5 years ago

libertysoft3 commented 5 years ago

Running the sample data installer

$ cd ~/src/reddit
$ reddit-run scripts/inject_test_data.py -c 'inject_test_data()'

is currently the only way you can have an admin user created, automoderator user created, the default_sr created, etc.

Fix is to create a slimmer version of inject_test_data() called something like inject_default_data() that just does the bare minimum, the first 9 lines. Then update the README installation instructions to say call one of these. Or split the function entirely and calling inject_test_data() after you have already called inject_default_data() is optional.

This is for production paths where people don't want a bunch of sample users and sample posts.

wizzwizz4 commented 5 years ago

This can be the start of the user-friendly Saidit installer. You know, for the decentralisation.

(I think this is a good first issue; that label might be useful if you concur.)

libertysoft3 commented 5 years ago

@wizzwizz4 Thanks man, I was totally misunderstanding "good first issue". Agreed.