summaryrefslogtreecommitdiff
path: root/config/environments
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'js-specs-transactions' into 'master'Andreas Brandl2019-07-121-1/+1
|\ | | | | | | | | | | | | Use transactions in JS feature specs Closes #60207 See merge request gitlab-org/gitlab-ce!27496
| * Use transactions in JS feature specsjs-specs-transactionsHeinrich Lee Yu2019-07-121-1/+1
| | | | | | | | | | Uses Rails transactional tests instead of DatabaseCleaner transaction strategy because that doesn't work with JS tests
* | Upgrade to Rails 5.2upgrade-rails-5-2-ceHeinrich Lee Yu2019-07-122-0/+2
|/ | | | Updates changed method names and fixes spec failures
* Allow BetterErrors REPL to be enabledashmckenzie/enable-better-errors-replAsh McKenzie2019-06-051-0/+3
| | | | | | This allows the BetterErrors REPL to be available when your GitLab instance is listening on something _other_ than localhost.
* Fix typos in the whole gitlab-ce projectYoginth2019-05-201-1/+1
|
* Remove rails 4 support in CI, Gemfiles, bin/ and config/Jasper Maes2018-12-142-12/+3
|
* Explicitly set locale fallbacksjprovazn-locale-fixJan Provaznik2018-11-211-4/+0
| | | | | | | | | | With a recent change in i18n, default language is not included in fallbacks by default. This causes that MissingTranslationData exception is raised both in development and production mode. This patch sets explicitly fallbacks language to english which assures that english is used for missing translations.
* Allow concurrency when using PumaAndrew Newdigate2018-11-052-1/+3
|
* Fix rails 5 deprecation warningsJan Provaznik2018-09-111-2/+2
| | | | Fixes rails 5 deprecation warnings in `config/` files
* Move spec/mailers/previews to app/mailers/previewsLin Jen-Shin2018-07-061-1/+1
|
* [Rails5] Pass class references instead of strings to middleware builderblackst0ne-rails5-update-middlewaresblackst0ne2018-06-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It fixes Rails 5.0 deprecation flooding like: ``` DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "::Gitlab::Middleware::ReadOnly" => Gitlab::Middleware::ReadOnly (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11) DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "ActionDispatch::Static" => ActionDispatch::Static (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11) DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "Gitlab::Testing::RequestBlockerMiddleware" => Gitlab::Testing::RequestBlockerMiddleware (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11) DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "ActionDispatch::Static" => ActionDispatch::Static (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11) DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "Gitlab::Testing::RequestInspectorMiddleware" => Gitlab::Testing::RequestInspectorMiddleware (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11) ```
* [Rails5] Update files by `rails app:update`blackst0ne-rails5-update-files-by-rails-app-updateblackst0ne2018-03-222-2/+12
|
* implement basic request inspector for use in Capybara testsMike Greiling2017-10-231-0/+1
|
* Resolve "Precompiled assets with digest strings are ignored in CI"Mike Greiling2017-10-031-1/+1
|
* Fix logger disabling on the CI: instantiate an ActiveSupport::TaggedLoggingrc/cob-backport-ce-to-ee-fixRémy Coutable2017-07-201-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Disable Rails logging in CI test environmentsrs-disable-test-log-in-ciRobert Speicher2017-07-181-0/+5
| | | | See https://jtway.co/speed-up-your-rails-test-suite-by-6-in-1-line-13fedb869ec4
* Rename CDN_HOST to GITLAB_CDN_HOSTStan Hu2017-06-151-1/+1
|
* Support a configurable Rails asset_host to allow for CDNsStan Hu2017-06-141-1/+1
| | | | Adds support for https://gitlab.com/gitlab-com/infrastructure/issues/57
* Merge branch '29421-production-config-assets-compile-false' into 'master' Stan Hu2017-05-161-1/+1
|\ | | | | | | | | | | | | Set 'config.assets.compile = false' in production Closes #29421 See merge request !9917
| * Set 'config.assets.compile = false' in production29421-production-config-assets-compile-falseJames Edwards-Jones2017-03-141-1/+1
| |
* | Turn on caching of classes in Knapsack specsStan Hu2017-04-141-1/+6
| | | | | | | | | | | | | | | | | | Enabling caching of classes slows start-up time because all controllers are loaded at initialization, but it reduces memory and load because files are not reloaded with every request. For example, caching is not necessary for loading database migrations but useful for handling Knapsack specs. Addresses gitlab-org/gitlab-ee#2162
* | Introduce a new middleware for the test environment that can block requestsRémy Coutable2017-03-221-0/+3
|/ | | | | | | | | | | | The idea is that after each feature spec example, we block all incoming requests at the Rack level, go to the 'about:blank' page, and wait until the current requests reach 0. This should solve the problem where a request would end after database cleaner performed the database truncation. The problem was that a GET request can still lead to records creation (e.g. namespaces or routes). Signed-off-by: Rémy Coutable <remy@rymai.me>
* Remove quiet_assets in favor of built-in sprockets-rails config.upgrade-sprockets-railsConnor Shea2016-06-301-0/+3
| | | | | | quiet_assets has been seemingly abandoned, and now sprockets-rails has the feature built-in! From this PR: https://github.com/rails/sprockets-rails/pull/355
* Customize ActionMailer preview pathRobert Speicher2016-05-251-0/+1
|
* Codestyle: make sure we have space around operatorsGabriel Mazetto2016-05-131-1/+1
|
* Add letter_opener_web gemrs-letter_opener_webRobert Speicher2016-04-221-1/+1
| | | | | | Sent emails in the development environment will no longer automatically be opened in the browser. If a sent email needs to be viewed, it can be found at the `/rails/letter_opener` route.
* Enable asset compression in production.connorshea2016-04-091-0/+3
| | | | | | `config.assets.compress` needed to be explicitly enabled. Follow-up to !3544. Resolves #14344.
* Bump rails to 4.2.6rs-update-railsRobert Speicher2016-04-051-0/+1
|
* Remove duplicate 'cache_store' configuration in test environmentremove-duplicate-cache_store-in-test-configRémy Coutable2016-03-021-2/+0
|
* Raise an error on page load if there are pending migrations on dev envDouglas Barbosa Alexandre2016-01-191-0/+3
|
* Don't send (fake) email during dev bootstrapno-mail-during-dev-bootstrapJacob Vosmaer2016-01-151-0/+2
| | | | | | | | This allows you to do: rake dev:setup BOOTSTRAP=1 and prevent dozens of letter_opener emai popups in your browser.
* Merge branch 'master' into reference-pipeline-and-cachingDouwe Maan2015-12-031-1/+1
|\
| * Rails deprecation warning about log_levelValery Sizov2015-12-031-1/+1
| |
* | Merge branch 'master' into reference-pipeline-and-cachingDouwe Maan2015-12-023-5/+7
|\ \ | |/
| * fix notification_service specsValery Sizov2015-11-301-0/+2
| |
| * Migrate mailers to ActiveJobValery Sizov2015-11-262-2/+2
| |
| * Rails update to 4.2.4Valery Sizov2015-11-253-3/+3
| |
* | Merge branch 'master' into reference-pipeline-and-cachingDouwe Maan2015-11-191-0/+2
|\ \ | |/
| * Disabling cache for test environmentValery Sizov2015-11-161-0/+2
| |
* | Disabling caching in test environment because it was causing issues with ↵Douwe Maan2015-10-221-0/+2
|/ | | | Markdown
* Added rack-lineprof for developmentYorick Peterse2015-10-151-1/+1
| | | | | | | | | | | | | | This can be used to measure the time (roughly) spent on a per line basis. This can also be used to measure timings for views, for example by adding the following to a URL: ?lineprof=app/views/projects/notes/_note rack-lineprof is only enabled when: 1. The application runs in development mode 2. The used Ruby is MRI 3. The environment variable ENABLE_LINEPROF is set to a non-empty value
* Groundwork for merging CI into CEDouwe Maan2015-08-251-0/+5
|
* Merge pull request #8349 from divineforest/cleanup-assets-compressDmitriy Zaporozhets2015-03-021-3/+3
|\ | | | | Remove useless `assets.compress` option, Rails 4 uses only `assets.js_co...
| * Remove useless `assets.compress` option, Rails 4 uses only ↵Alexander Balashov2014-11-181-3/+3
| | | | | | | | | | `assets.js_compressor` > The config.assets.compress option should be changed to config.assets.js_compressor like so for instance
* | Don't cache classes in testsJeroen van Baarsen2015-02-121-1/+1
|/ | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Configure Redis cache for all environmentsJacob Vosmaer2014-08-261-10/+0
| | | | Also add support for connecting to Redis with Unix sockets.
* Disable debug assetsJan-Willem van der Meer2014-08-121-1/+1
| | | | | It's good for debugging javacsript, but creates massive amounts of http request by adding each javascript individually. Only turn it on while debugging js code.
* Fix dev env. Fix MR creationDmitriy Zaporozhets2014-06-262-6/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove active_record.auto_explain_treshold_in_seconds, rails 4.0 deprecationMarin Jankovski2014-06-031-4/+0
|
* Give the Rails cache its own Redis namespaceJacob Vosmaer2014-04-151-1/+1
| | | | | | | | Before this change, Rails cache data was stored in a global Redis namespace. As a consequence, clearing the Rails cache (`rake cache:clear`) would also delete all Sidekiq queue data and session storage. This change puts all Rails cache data in a `cache:gitlab` namespace, making `rake cache:clear` safe again.