Skip to content

Support Rails “production” environment within the GDK context. Enables more…

Support Rails “production” environment within the GDK context. Enables more accurate performance profiling.

Performance Profiling for GitLab GDK

GitLab GDK defaults to the Rails 'development' environment.

For real-time profiling, it is desirable to have Rails use the 'production' environment to allow classes to be cached, queries to be cached, and to allow Rack to avoid re-validating its entire stack for each incoming request.

The GDK allows simulation of a production Rails environment by setting the contents of the .gdk_environment file to production

    echo production > .gdk_environment
    gdk reconfigure

see also:

Edited by username-removed-178117

Merge request reports