Skip to content

Env `DEV_SERVER_LIVERELOAD` to disable webpack dev server livereload

What does this MR do?

Pickup DEV_SERVER_LIVERELOAD environment variable (set by the GDK) and enable/disable the webpack dev server inline livereload option appropriately, https://webpack.github.io/docs/webpack-dev-server.html#inline-mode

  • Launch the GDK with DEV_SERVER_LIVERELOAD=false gdk run db

  • Edit your GDK Procfile manually to add DEV_SERVER_LIVERELOAD=false before webpack-dev-server

  • Add DEV_SERVER_LIVERELOAD=false to your .bash_profile

@mikegreiling https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9287#note_23738483

GDK MR: https://gitlab.com/gitlab-org/gitlab-development-kit/merge_requests/254

After the GDK MR is merged, in the GDK directory, echo false > webpack_livereload, gdk reconfigure, restart server gdk run

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

To disable livereload while developing

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #28204 (closed)

Merge request reports