studioespresso / craft3-seeder

Seeder is the easiest way to quickly create placeholder content while you're building out a website. Create your sections & fields and then let Seeder make entries for you.
https://plugins.craftcms.com/seeder
MIT License
28 stars 3 forks source link

Docs unclear #1

Closed jan-dh closed 6 years ago

jan-dh commented 6 years ago

I've followed the installation guide from the docs. I have the plugin installed, showing up as installed in the admin panel but I'm unable to get it working. With all the commands I try from the docs I keep getting unknown command "seeder/generate

janhenckens commented 6 years ago

Hey Jan

Thanks for trying out the plugin! When running ./craft help, are the seeder commands listed there?

If they are not, I think the issue is that your config can't connect to the database through the command line (so it can't read the installed plugins, so it doesn't know the commands). Could you check that?

Thanks Jan

jan-dh commented 6 years ago

You are right, no seeder commands to be found. I'm working locally with a remote DB, our default setup for new project.

janhenckens commented 6 years ago

Well, your default project setup will probably not work over CLI...

As a test, try changing the database name to something random and run ./craft help again. You'll still see the same commands as before (those are in Craft & Yii itself), not the commands coming from plugins.

I don't know your exact setup but that's the reason you're not seeing the other commands.

jan-dh commented 6 years ago

Hmm, the issue is indeed related to the ./craft not having access to the DB. As for the installing instructions, are you planning to put the plugin on the store? If I find some time i'll do a PR for some more beginner friendly docs this week.

jan-dh commented 6 years ago

Ok, so, seems that when you're using the Craft3-Multi-Environment setup, you should use 127.0.0.1 in your .env.php for your database setup, instead of localhost - working with MAMP - to get access to the plugins. Got it working now.

janhenckens commented 6 years ago

Yes, it's definitely going on the plugin store, just making sure that everything works and is clear for people to use it. Will be adding a note about this to the docs too!