mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 19:00:32 -06:00
ad8c7714c8
In development we regularly restart/reload Rails, which wipes out the schema cache. This then has to be regenerated using DDL queries on the database. Instead, we can make use of the `rake db:schema:cache:dump` command. This will dump the schema cache to a YAML file, and then load it when needed. This is significantly faster than rebuilding the cache from DDL queries every time.
158 lines
2.5 KiB
Plaintext
158 lines
2.5 KiB
Plaintext
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
#
|
|
# If you find yourself ignoring temporary files generated by your text editor
|
|
# or operating system, you probably want to add a global ignore instead:
|
|
# git config --global core.excludesfile ~/.gitignore_global
|
|
|
|
.DS_Store
|
|
._.DS_Store
|
|
dump.rdb
|
|
|
|
bin/*
|
|
|
|
data/
|
|
|
|
.sass-cache/*
|
|
public/csv/*
|
|
public/plugins/*
|
|
public/tombstone/*
|
|
|
|
# Ignore bundler config
|
|
/.bundle
|
|
/cache
|
|
/coverage/*
|
|
|
|
/public/assets/*
|
|
/public/tombstone/*
|
|
/bundle/*
|
|
|
|
config/discourse.pill
|
|
config/discourse.conf
|
|
|
|
# Ignore the default SQLite database and db dumps
|
|
*.sql
|
|
*.sql.gz
|
|
!/spec/fixtures/**/*.sql
|
|
/db/*.sqlite3
|
|
/db/structure.sql
|
|
/db/schema.rb
|
|
/db/schema_cache.yml
|
|
|
|
# Ignore all logfiles and tempfiles.
|
|
/log/*.log
|
|
/tmp
|
|
/logfile
|
|
log/
|
|
bootsnap-load-path-cache
|
|
bootsnap-compile-cache/
|
|
|
|
# Ignore plugins except for the bundled ones.
|
|
/plugins/*
|
|
!/plugins/lazy-yt/
|
|
!/plugins/poll/
|
|
!/plugins/discourse-details/
|
|
!/plugins/discourse-nginx-performance-report
|
|
!/plugins/discourse-narrative-bot
|
|
!/plugins/discourse-presence
|
|
!/plugins/styleguide
|
|
!/plugins/discourse-local-dates
|
|
/plugins/*/auto_generated/
|
|
|
|
/spec/fixtures/plugins/my_plugin/auto_generated
|
|
|
|
# Ignore Eclipse .project file
|
|
/.project
|
|
|
|
# Ignore Eclipse .buildpath file
|
|
/.buildpath
|
|
|
|
# Ignore byebug history
|
|
/.byebug_history
|
|
|
|
# Ignore RubyMine settings
|
|
/.idea
|
|
|
|
# Ignore gem that is copied in
|
|
MiniProfiler/Ruby/rack-mini-profiler-2.0.1a.gem
|
|
|
|
discourse.sublime-workspace
|
|
|
|
# Vim temp files
|
|
*~
|
|
*.swp
|
|
*.swo
|
|
*.swm
|
|
|
|
# don't check in multisite config
|
|
config/multisite.yml
|
|
# don't check in my renamed multisite config as well :)
|
|
config/multisite1.yml
|
|
config/fog_credentials.yml
|
|
|
|
/public/fonts
|
|
/public/uploads
|
|
/public/backups
|
|
/public/stylesheet-cache/*
|
|
|
|
# Scripts used for downloading/refreshing db
|
|
script/download_db
|
|
script/refresh_db
|
|
|
|
# .procfile
|
|
.procfile
|
|
|
|
# .env, local environment variables for use with foreman
|
|
.env
|
|
|
|
# exclude our git version file for now
|
|
config/version.rb
|
|
|
|
# ignore the Ruby Version manager (rvm)
|
|
.rvmrc
|
|
.ruby-version
|
|
.ruby-gemset
|
|
.rbenv
|
|
bundler_stubs/*
|
|
|
|
vendor/bundle/*
|
|
*.db
|
|
|
|
# ignore jetbrains ide file
|
|
*.iml
|
|
|
|
# vim swap
|
|
*.swn
|
|
|
|
# ignore nodejs files
|
|
node_modules
|
|
/package-lock.json
|
|
|
|
/vendor/data/GeoLite2-City.mmdb
|
|
|
|
# Vagrant
|
|
.vagrant
|
|
|
|
# ignore auto-generated plugin js assets
|
|
/app/assets/javascripts/plugins/*
|
|
|
|
# ignore generated api documentation files
|
|
openapi/*
|
|
|
|
# ignore VSCode config files
|
|
.vscode
|
|
|
|
# ignore direnv
|
|
.envrc
|
|
|
|
# ember-cli generated
|
|
dist
|
|
|
|
# Copyright Deposits
|
|
copyright
|
|
|
|
yarn-error.log
|
|
tags
|
|
|
|
# file used with `discourse_dev` gem in development environment.
|
|
config/dev.yml
|