(備忘録)マストドンで使えるタスク

# (備忘録)マストドンで使えるタスク  
## docker-compose run --rm web + 以下のタスク

```
rails about                                          # List versions of all Rails frameworks and the environment
rails app:template                                   # Applies the template supplied by LOCATION=(/path/to/template) or URL
rails app:update                                     # Update configs and some other initially generated files (or use just update:configs or update:bin)
rails assets:clean[keep]                             # Remove old compiled assets
rails assets:clobber                                 # Remove compiled assets
rails assets:environment                             # Load asset compile environment
rails assets:precompile                              # Compile all the assets named in config.assets.precompile
rails cache_digests:dependencies                     # Lookup first-level dependencies for TEMPLATE (like messages/show or comments/_comment.html)
rails cache_digests:nested_dependencies              # Lookup nested dependencies for TEMPLATE (like messages/show or comments/_comment.html)
rails db:create                                      # Creates the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:create:all to create all databas...
rails db:drop                                        # Drops the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:drop:all to drop all databases in ...
rails db:environment:set                             # Set the environment value for the database
rails db:fixtures:load                               # Loads fixtures into the current environment's database
rails db:migrate                                     # Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog)
rails db:migrate:setup                               # Setup the db or migrate depending on state of db
rails db:migrate:status                              # Display status of migrations
rails db:rollback                                    # Rolls the schema back to the previous version (specify steps w/ STEP=n)
rails db:schema:cache:clear                          # Clears a db/schema_cache.yml file
rails db:schema:cache:dump                           # Creates a db/schema_cache.yml file
rails db:schema:dump                                 # Creates a db/schema.rb file that is portable against any DB supported by Active Record
rails db:schema:load                                 # Loads a schema.rb file into the database
rails db:seed                                        # Loads the seed data from db/seeds.rb
rails db:setup                                       # Creates the database, loads the schema, and initializes with the seed data (use db:reset to also drop the database first)
rails db:structure:dump                              # Dumps the database structure to db/structure.sql
rails db:structure:load                              # Recreates the databases from the structure.sql file
rails db:version                                     # Retrieves the current schema version number
rails dev:cache                                      # Toggle development mode caching on/off
rails hamlit:erb2haml                                # Convert erb to haml in app/views
rails initializers                                   # Print out all defined initializers in the order they are invoked by Rails
rails log:clear                                      # Truncates all/specified *.log files in log/ to zero bytes (specify which logs with LOGS=test,development)
rails mastodon:confirm_email                         # Manually confirms a user with associated user email address stored in USER_EMAIL environment variable
rails mastodon:daily                                 # Execute daily tasks
rails mastodon:emails:digest                         # Send out digest e-mails
rails mastodon:feeds:clear                           # Clear timelines of inactive users
rails mastodon:feeds:clear_all                       # Clears all timelines
rails mastodon:maintenance:add_static_avatars        # Generate static versions of GIF avatars/headers
rails mastodon:maintenance:prepare_for_foreign_keys  # Ensure referencial integrity
rails mastodon:maintenance:update_counter_caches     # Update counter caches
rails mastodon:make_admin                            # Turn a user into an admin, identified by the USERNAME environment variable
rails mastodon:media:clear                           # Removes media attachments that have not been assigned to any status for longer than a day
rails mastodon:media:remove_remote                   # Remove cached remote media attachments that are older than a week
rails mastodon:media:remove_silenced                 # Remove media attachments attributed to silenced accounts
rails mastodon:media:set_unknown                     # Set unknown attachment type for remote-only attachments
rails mastodon:push:clear                            # Unsubscribes from PuSH updates of feeds nobody follows locally
rails mastodon:push:refresh                          # Re-subscribes to soon expiring PuSH subscriptions
rails mastodon:settings:close_registrations          # Close registrations on this instance
rails mastodon:settings:open_registrations           # Open registrations on this instance
rails mastodon:stats                                 # Report code statistics (KLOCs, etc)
rails mastodon:users:admins                          # List all admin users
rails mastodon:users:clear                           # Clear out unconfirmed users
rails middleware                                     # Prints out your Rack middleware stack
rails notes                                          # Enumerate all annotations (use notes:optimize, :fixme, :todo for focus)
rails notes:custom                                   # Enumerate a custom annotation, specify with ANNOTATION=CUSTOM
rails paperclip:clean                                # Cleans out invalid attachments
rails paperclip:find_broken_attachments              # find missing attachments
rails paperclip:refresh                              # Refreshes both metadata and thumbnails
rails paperclip:refresh:metadata                     # Regenerates content_type/size metadata for a given CLASS (and optional ATTACHMENT)
rails paperclip:refresh:missing_styles               # Regenerates missing thumbnail styles for all classes using Paperclip
rails paperclip:refresh:thumbnails                   # Regenerates thumbnails for a given CLASS (and optional ATTACHMENT and STYLES splitted by comma)
rails pghero:analyze                                 # analyze tables
rails pghero:autoindex                               # autoindex
rails pghero:capture_query_stats                     # capture query stats
rails pghero:capture_space_stats                     # capture space stats
rails restart                                        # Restart app by touching tmp/restart.txt
rails routes                                         # Print out all defined routes in match order, with names
rails secret                                         # Generate a cryptographically secure secret key (this is typically used to generate a secret for cookie sessions)
rails stats                                          # Report code statistics (KLOCs, etc) from the application or engine
rails test                                           # Runs all tests in test folder except system ones
rails test:db                                        # Run tests quickly, but also reset db
rails time:zones[country_or_offset]                  # List all time zones, list by two-letter country code (`rails time:zones[US]`), or list by UTC offset (`rails time:zones[-8]`)
rails tmp:clear                                      # Clear cache and socket files from tmp/ (narrow w/ tmp:cache:clear, tmp:sockets:clear)
rails tmp:create                                     # Creates tmp directories for cache, sockets, and pids
rails webpacker                                      # Lists all available tasks in webpacker
rails webpacker:check_node                           # Verifies if Node.js is installed
rails webpacker:check_yarn                           # Verifies if yarn is installed
rails webpacker:clobber                              # Remove the webpack compiled output directory
rails webpacker:compile                              # Compile javascript packs using webpack for production with digests
rails webpacker:compile_before_test                  # Compile javascript packs using webpack for test with digests
rails webpacker:install                              # Install webpacker in this application
rails webpacker:install:angular                      # Install everything needed for Angular
rails webpacker:install:react                        # Install everything needed for React
rails webpacker:install:vue                          # Install everything needed for Vue
rails webpacker:verify_install                       # Verifies if webpacker is installed
rails webpacker:yarn_install                         # Support for older Rails versions.Install all JavaScript dependencies as specified via Yarn
rails yarn:install                                   # Install all JavaScript dependencies as specified via Yarn
```