Add dev:populate_sample_data rake task to populate test data (#34676)

This commit is contained in:
Claire 2025-05-15 10:51:07 +02:00 committed by GitHub
parent e17c78b679
commit ae281f31db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 355 additions and 0 deletions

View file

@ -90,6 +90,7 @@ development environment configured with the software needed for this project.
- Once you have successfully set up a development environment, it will be available on http://localhost:3000
- Log in as the default admin user with the username `admin@mastodon.local` and the password `mastodonadmin`.
- Check out the [Mastodon docs] for tips on working with emails in development (you'll need this when creating new user accounts) as well as a list of useful commands for testing and updating your dev instance.
- You can optionally populate your database with sample data by running `bin/rails dev:populate_sample_data`. This will create a `@showcase_account` account with various types of contents.
[codespace]: https://codespaces.new/mastodon/mastodon?quickstart=1&devcontainer_path=.devcontainer%2Fcodespaces%2Fdevcontainer.json
[CONTRIBUTING]: ../CONTRIBUTING.md