...on WEBrick, put this method into your application controller. def ensure_proper_protocol request.headers['SERVER_SOFTWARE'].andand.include?('WEBrick') || super
...below accordingly. Basic idea We will use the guard-livereload gem as the livereload server (which send updates to the browser), use the livereload-js npm package in the browser...
...to connect to the livereload server, not use rack-livereload any more as this is unnecessarily complex and does not work with many CSP policies. We will configure guard-livereload...
There are two ways a logout in SAML can happen: Service Provider (SP) initiated and Identity Provider (IDP) initiated logout. I'll explain how to implement both flows with devise...
...triggers a DELETE /users/sign_out (at least for devise_saml_authenticatable, others might differ) The server generates a SAML LogoutRequest and responds with a redirect the the SingleLogoutService HTTP-Redirect Binding...
...currently running PG version from your Rails application (e.g. Rails console on your production server), simply do this: ActiveRecord::Base.connection.select_value('SELECT version...
...consists of a single http command designed for painless debugging and interaction with HTTP servers, RESTful APIs, and web services It easy to use and has very nice defaults and...
...erhalten bleiben. Das heißt: http://staticcontent.local.test/httpbin/uuid soll nur mit /uuid an den httpbin Service weitergeleitet werden. Sieh dir dafür genau die Dokumentation zu proxy_pass an. Mache ein systemctl...
...und -abbau mit allen Paketen beschreiben Du kennst Port-Nummern und Protokolle der häufigsten Services auswendig: SSH, DNS, HTTP, HTTPS, SMTP, POP3, IMAP, MySQL, PostgreSQL, Redis Wie kann ich prüfen...
...makandra.de aufbauen und die Datei robots.txt abrufen (Siehe https://richj.co/talking-http-1.1/) Du weisst, was dieser Server-Header bedeutet: Strict-Transport-Security: max-age=31536000 IPv6 Wie werden MAC Adressen bei...
When you require the Ruby debugger to be available from your Rails console (e.g. you want to inspect a method...
...the console, your test may fail after the last step. With unlucky timing the server may receive an AJAX request as the browser tab closes, causing a connection abort when...
...trying to send the response. Since Capybara fails a test if there is a server error this may produce a flaky test. Waiting for pending AJAX requests The following module...
Claude can connect to MCP servers to access additional information, like Linear issues or Figma designs. Such MCP servers usually allow doing a lot of different things, from reading to...
In Claude Code, run /mcp. Pick "Show unused connectors". Pick your desired service, e.g. "claude.ai Linear". Pick "Authenticate". Click the link to open in your browser, and confirm...
When running Selenium features with parallel_tests, some browser-server interaction might take longer than usual and the impatient Capybara will not wait enough to see results. Put the attached...
Your development server is usually running on an insecure HTTP connection which is perfectly fine for development. If you need your local dev server to be accessible via HTTPS for...
...to do this again in a month or a year. Next, start your application server for HTTPS. For a Rails application with Puma: bin/rails server -b 'ssl://0.0.0.0:3000?key...
gem 'capistrano-passenger', require: false Add to your Capfile: require 'capistrano/passenger' Declare which server role should be restarted (optional). Usually passenger tries to restart all servers with the app...
...role. If you have dedicated Sidekiq servers with the app role, adjust the passenger_roles setting to exclude them. set :passenger_roles, :app # This is the default Remove any homegrown...
...can churn wildly A big drawback of db/structure.sql is that different developer PCs or servers may create slightly different SQL output. Since this file is rewritten with every migration run...
...Possible reasons for this churn include: Two developers use different versions of the database server (e.g. PostgreSQL 16 vs. 17). Two developers use the same version of the database server...
...always is to prevent long-running queries in the first place, automatic timeouts can serve as a safety net to terminate problematic queries automatically if a set time limit is...
...both databases offer a variable to limit the execution time of queries. While they serve similar purposes they do have some differences in behavior and implementation. PostgreSQL Timeout Type: statement...
...that lets you define "partials" in HTML without any additional rendering technology on the server or client...
We're using Middleman for some static sites like our blog. Despite being very similar to Rails, Middleman does not...
...to-end tests shouldn't: a component's details and edge cases, without a server or a database. You can write a unit spec for a component: create the DOM...
...delay (5 seconds in the example), the component makes a request to /foo. The server is expected to respond with HTML containing an element with the same [id] (news in...
...alternative to net/http and shares many concepts with WebMock. You can fake a remote server response like this: stub_request(:get, 'http://host/api').to_return(:body => 'fake body')
If a users password for https://monitor.makandra.de/ is unknown one can set it like this: sudo python /opt/graphite/webapp/graphite/manage.py changepassword ${USERNAME...
To check your apache2 config files for syntax errors run sudo apache2ctl configtest or shorter sudo apache2ctl -t
...install a modern libvips version using our PPA. If you're hosting on makandra servers these packages have already been installed on your application servers. RubyGem In your Ruby code...
...failing end-to-end test by pausing it and inspecting the page and the server log. You review your own changes before committing, so debugging statements never end up in...
...Debugging — when the bug is in your stylesheet Debugging in Ruby Note Running your server as part of a single combined terminal with the bin/dev command makes Ruby debugging harder...
You can use wscat: sudo apt-get install node-ws # wscat -c ws://echo.websocket.org connected (press CTRL+C to quit...