Skip to content

Instantly share code, notes, and snippets.

@SamSaffron
Created March 21, 2014 05:04
Show Gist options
  • Save SamSaffron/9679864 to your computer and use it in GitHub Desktop.
Save SamSaffron/9679864 to your computer and use it in GitHub Desktop.
sam@ubuntu discourse_docker % ./launcher ssh standalone
Welcome to Discourse Docker
Use: rails, rake or discourse to execute commands in production
root@ubuntu-standalone:~# discourse
Commands:
discourse backup # Backup a discourse forum
discourse disable_readonly # Disable the readonly mode
discourse disable_restore # Forbid restore operations
discourse enable_readonly # Enable the readonly mode
discourse enable_restore # Allow restore operations
discourse export # Backup a Discourse forum
discourse help [COMMAND] # Describe available commands or one specific command
discourse import # Restore a Discourse backup
discourse remap # Remap a string sequence accross all tables
discourse request_refresh # Ask all clients to refresh the browser
discourse restore # Restore a Discourse backup
discourse rollback # Rollback to the previous working state
Options:
v, [--verbose=VERBOSE]
root@ubuntu-standalone:~# rails c
Loading production environment (Rails 4.0.3)
irb(main):001:0> exit
root@ubuntu-standalone:~# rake --tasks
rake about # List versions of all Rails frameworks and the environment
rake add_topic_to_quotes # Add the topic to quotes
rake admin:create # Creates a forum administrator
rake api_key:get # generate api key if missing, return existing if already there
rake assets:clean[keep] # Remove old compiled assets
rake assets:clobber # Remove compiled assets
rake assets:environment # Load asset compile environment
rake assets:precompile # Compile all the assets named in config.assets.precompile
rake assets:prestage # pre-stage assets on cdn
rake autospec # Run all specs automatically as needed
rake avatars:regenerate # re-generate avatars
rake build:stamp # stamp the current build with the git hash placed in version.rb
rake build_test_topic # create pushstate/replacestate test topic
rake cache_digests:dependencies # Lookup first-level dependencies for TEMPLATE (like messages/show or comments/_co...
rake cache_digests:nested_dependencies # Lookup nested dependencies for TEMPLATE (like messages/show or comments/_comment...
rake db:create # Create the database from DATABASE_URL or config/database.yml for the current Rai...
rake db:drop # Drops the database using DATABASE_URL or the current Rails.env (use db:drop:all ...
rake db:fixtures:load # Load fixtures into the current environment's database
rake db:migrate # Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog)
rake db:migrate:status # Display status of migrations
rake db:rebuild_indexes # Rebuild indexes
rake db:rollback # Rolls the schema back to the previous version (specify steps w/ STEP=n)
rake db:schema:cache:clear # Clear a db/schema_cache.dump file
rake db:schema:cache:dump # Create a db/schema_cache.dump file
rake db:schema:dump # Create a db/schema.rb file that can be portably used against any DB supported by AR
rake db:schema:load # Load a schema.rb file into the database
rake db:seed # Load the seed data from db/seeds.rb
rake db:seed:welcome # Seed database for production
rake db:seed_fu # Loads seed data for the current environment
rake db:setup # Create the database, load the schema, and initialize with the seed data (use db:...
rake db:version # Retrieves the current schema version number
rake doc:app # Generate docs for the app -- also available doc:rails, doc:guides (options: TEMP...
rake enqueue_digest_emails # This task is called by the Heroku scheduler add-on
rake i18n:stats # show the current translation status
rake integration:create_fixtures # Creates the integration fixtures
rake log:clear # Truncates all *.log files in log/ to zero bytes (specify which logs with LOGS=te...
rake middleware # Prints out your Rack middleware stack
rake multisite:generate:config # generate multisite config file (if missing)
rake multisite:migrate # migrate all sites in tier
rake multisite:rollback # rollback migrations for all sites in tier
rake notes # Enumerate all annotations (use notes:optimize, :fixme, :todo for focus)
rake notes:custom # Enumerate a custom annotation, specify with ANNOTATION=CUSTOM
rake plugin:install[repo] # install plugin
rake plugin:spec[plugin] # run plugin specs
rake plugin:update[plugin] # update a plugin
rake plugin:update_all # update all plugins
rake posts:rebake # Update each post with latest markdown
rake posts:refresh_oneboxes # Update each post with latest markdown and refresh oneboxes
rake qunit:test # Runs the qunit test suite
rake rails:template # Applies the template supplied by LOCATION=(/path/to/template) or URL
rake rails:update # Update configs and some other initially generated files (or use just update:conf...
rake routes # Print out all defined routes in match order, with names
rake secret # Generate a cryptographically secure secret key (this is typically used to genera...
rake smoke:test # run phantomjs based smoke tests on current build
rake stats # Report code statistics (KLOCs, etc) from the application
rake test # Runs test:units, test:functionals, test:integration together
rake test:all # Run tests quickly by merging all types and not resetting db
rake test:all:db # Run tests quickly, but also reset db
rake test:recent # Run tests for {:recent=>["test:deprecated", "test:prepare"]} / Deprecated; Test ...
rake test:uncommitted # Run tests for {:uncommitted=>["test:deprecated", "test:prepare"]} / Deprecated; ...
rake time:zones:all # Displays all time zones, also available: time:zones:us, time:zones:local -- filt...
rake tmp:clear # Clear session, cache, and socket files from tmp/ (narrow w/ tmp:sessions:clear, ...
rake tmp:create # Creates tmp directories for sessions, cache, sockets, and pids
rake user_actions:rebuild # rebuild the user_actions table
root@ubuntu-standalone:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment