Commit Graph
42 Commits
Author SHA1 Message Date
connorshea 44d9f52fd9 Enable asset compression in production.
`config.assets.compress` needed to be explicitly enabled.

Follow-up to !3544. Resolves #14344.
2016-04-09 16:31:41 -06:00
Robert Speicher 5ff9d2a182 Bump rails to 4.2.6 2016-04-05 13:07:53 -04:00
Rémy Coutable 9c593a51c3 Remove duplicate 'cache_store' configuration in test environment 2016-03-02 10:33:38 +00:00
Douglas Barbosa Alexandre 96440042a9 Raise an error on page load if there are pending migrations on dev env 2016-01-19 00:12:30 -02:00
Jacob Vosmaer 4da7547b6d Don't send (fake) email during dev bootstrap
This allows you to do:

    rake dev:setup BOOTSTRAP=1

and prevent dozens of letter_opener emai popups in your browser.
2016-01-15 13:15:24 +01:00
Douwe Maan 0dcff1342b Merge branch 'master' into reference-pipeline-and-caching 2015-12-03 13:34:25 +01:00
Valery Sizov f21bbd4444 Rails deprecation warning about log_level 2015-12-03 10:53:58 +02:00
Douwe Maan 2955ca613b Merge branch 'master' into reference-pipeline-and-caching 2015-12-02 11:20:51 +01:00
Valery Sizov 461731f076 fix notification_service specs 2015-11-30 11:21:10 +02:00
Valery SizovandValery Sizov 7f214cee74 Migrate mailers to ActiveJob 2015-11-26 17:03:43 +02:00
Valery Sizov 40ff1318d2 Rails update to 4.2.4 2015-11-25 18:18:44 +02:00
Douwe Maan f5a630111f Merge branch 'master' into reference-pipeline-and-caching 2015-11-19 15:46:04 +01:00
Valery Sizov 9e0d443f9e Disabling cache for test environment 2015-11-16 12:18:31 +02:00
Douwe Maan c1ecfb5de9 Disabling caching in test environment because it was causing issues with Markdown 2015-10-22 15:38:11 +02:00
Yorick Peterse d4832b0341 Added rack-lineprof for development
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
2015-10-15 12:05:01 +02:00
Douwe Maan 046b283127 Groundwork for merging CI into CE 2015-08-25 18:42:46 -07:00
Dmitriy Zaporozhets eb865c43d0 Merge pull request #8349 from divineforest/cleanup-assets-compress
Remove useless `assets.compress` option, Rails 4 uses only `assets.js_co...
2015-03-02 15:23:57 -08:00
Jeroen van Baarsen d458e39e31 Don't cache classes in tests
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2015-02-12 13:47:23 +01:00
Alexander Balashov d0f6654e9c Remove useless assets.compress option, Rails 4 uses only assets.js_compressor
> The config.assets.compress option should be changed to config.assets.js_compressor like so for instance
2014-11-18 10:12:05 +03:00
Jacob Vosmaer 9122823afc Configure Redis cache for all environments
Also add support for connecting to Redis with Unix sockets.
2014-08-26 13:44:39 +02:00
Jan-Willem van der Meer 88773498b9 Disable debug assets
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.
2014-08-12 18:10:16 +02:00
Dmitriy Zaporozhets f86afb732b Fix dev env. Fix MR creation
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-26 18:40:13 +03:00
Marin Jankovski e18d5be55a Remove active_record.auto_explain_treshold_in_seconds, rails 4.0 deprecation 2014-06-03 11:37:23 +02:00
Jacob Vosmaer 8d78662e69 Give the Rails cache its own Redis namespace
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.
2014-04-15 15:53:14 +02:00
Jacob Vosmaer 7862201de9 Add source for 'Rendered' message suppression 2014-03-24 09:57:28 +01:00
Jacob Vosmaer b816389182 Suppress 'Rendered' messages in production.log 2014-03-24 09:56:26 +01:00
Dmitriy Zaporozhets 5ffce6a65e GitLab app is not threadsafe so better disable allow_concurrency for production env
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-12-10 12:11:28 +02:00
Jeroen van BaarsenandDmitriy Zaporozhets 81fc5137ac Fixed the WhiningNill deprecation fix 2013-12-10 12:11:27 +02:00
Dmitriy Zaporozhets ede272406a Update config/* to rails4
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-12-10 12:11:27 +02:00
Robin Gloster 2b904cb34f Fix caching when using remote redis server 2013-08-14 00:02:27 +02:00
Dmitriy Zaporozhets 66d6c80966 Disable threadsafety 2013-07-08 18:24:02 +03:00
Dmitriy Zaporozhets 2c3ddacbd7 Disable threadsafe! for rake tasks 2013-06-13 09:58:03 +03:00
Dmitriy Zaporozhets 5511a731bc Enable threadsafe. Preload lib/ 2013-06-11 18:03:13 +03:00
Andrey Kumanyaev 67ccc8b52a Replace old hashes with new 1.9 ruby hashes (rebase) 2013-05-05 18:01:10 +04:00
Dmitriy Zaporozhets 4c1538a946 Use redis as cache storage. cache events 2013-03-06 17:30:48 +02:00
Riyad Preukschas 527d223680 Update Rails config 2012-11-18 21:51:53 +01:00
Nihad Abbasov 83efcabc82 set activerecord whitelist_attributes to true 2012-09-26 11:18:35 -07:00
Dmitriy Zaporozhets bc3735004c Moving to rails 3.2 2012-02-11 20:34:25 +02:00
Dmitriy Zaporozhets 8ad1f8a474 activities page caching 2011-11-27 14:53:12 +02:00
Nihad Abbasov 3f24f54061 install letter_opener 2011-10-31 16:20:41 +04:00
Nihad Abbasov d62200cad4 clean-up code
* Remove trailing whitespace
  * Converts hard-tabs into two-space soft-tabs
  * Remove consecutive blank lines
2011-10-26 18:46:25 +05:00
gitlabhq 9ba1224867 init commit 2011-10-09 00:36:38 +03:00