If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this...
...a very narrow scope Has no separate build process in development. Instead the Rails server directly compiles the asset whenever it renders a javascript_tag, stylesheet_tag or image_tag...
...example project and resources below: What "packs" are How to use the webpack dev server How to add and remove npm packages with yarn How import and export of relative...
...origin requests. It defines under which circumstances a cookie should be sent to the server, putting cookies into three different classes: SameSite=None Send the cookie whenever a request is...
...Ruby, and it is tailored to a certain domain. In contrast, a gem usually: serves a single purpose supports several Ruby versions supports several Rails versions cannot and should not...
...tests in Cucumber with Aruba. Github Actions Github Actions is a free continuous integration service offered by Github. It runs your test suite in the background and reports test results...
...for the given locale. Note that Hyphenopoly is primarily a NodeJS module and targeted at server-side hyphenation, but it can be configured for the client-side as well.
...clients, we want to review all code written before it goes to the staging server. Note This process is tailored to our specific needs and tools at makandra. While it...
Running rails server will start a local server that you can access via http://localhost:3000. When you are working on multiple web apps, they will likely set cookies with...
...you switch to another app. A better way is to use our own daho.im service. All daho.im subdomains resolve to your local IP (127.0.0.1). That means you can use a...
...maximum number of Passenger workers and Sidekiq worker. If you have a shared database server many possible connections are "expensive", so setting the pool size to a very high number...
...is no good idea (also consider the number of servers you when calculating the total number of possible connections for the shared database server). Blowing up the fail inbox: If...
...monitored. We are experts in Linux and AWS environments, as well as self-hosted server infrastructures. Have a look at makandra operations. Trainee program and makandra curriculum In makandra cards...
...that can help both newcomers and experienced developers in web development and DevOps. It serves as practical support for anyone who wants to expand their technical skills or anyone who...
...use to describe nontrivial migrations in Rails / ActiveRecord. Note that the techniques below should serve you well for tables with many thousand rows. Once your database tables grows to millions...
openssl req -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout server.key -out server.crt Explanation req -new Create a new request ... -newkey ... using a new key ...
...or JS file to your application (e.g. app/assets/application/navbar.sass), you need to restart your development server for it to show up in your browser. This is caused by a limitation of...
...in your application.js. Direct import statements like import 'app/assets/application/navbar.sass' would work without restarting the server. You'll learn the details of esbuild and the frontend build pipelines in a later...
...specific references (such as selectors or URLs). Note that it's OK for the server to send HTML for your JavaScript to consume. It does not need to be JSON...
You can use fetch() to load a server response into a JavaScript variable, without making a page load. This concept is also known as AJAX. Dual-pane layout
...argument that will be the result of that block iteration. The following method will serve as an example in the details below: def example puts yield puts 'done' return 'example...
...a custom pretty_inspect as well. It's fairly simple to do and can serve as a fallback if pretty-printing is not applicable. This can also be an alternative...
...font files, even unneeded ones, but that consumes only disk space on your application servers. Updating to the latest version of a font is trivial. Yes, fonts are updated, occasionally...
When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user double-clicks on a button, for example. This often leads...
...Protokoll baut es auf, auf welchem Port läuft es? Was ist OpenSSH? Was ist ein Server-Fingerprint und wie sehen Fehler beim Abgleich aus? Was ist public key-Authentfizierung, wie...
...konfiguriert man es am Server, wie hinterlegt man öffentliche Schlüssel für Benutzer? Was ist ein Bastion- oder Jump-Host und warum verwendet man das? Wie funktionieren scp und rsync?
...your cookies. There is simply no case when the browser would talk to the server via unencrypted http:// requests. Why you might need secure-only cookies anyway A security audit...
...Rails app you can add a middleware that automatically sets the Secure flag to all server-set cookies. The flag is only added for secure requests, so cookies will still...
...seen cases in production where such queries consume GBs of memory bringing down our servers. The solution Just use .preload instead. Rails will use separate queries to preload the data...
## Development Describe how to get started with the project. Document employed 3rd party services and how to use them, how to start a development server – just about
You can choose not to care. Since e.g. making JSON requests for HTML services is not supported use of your page, you don't have to support them with...
...Not found error, which is slightly less correct than a 406, but will serve your purpose. Option: Check the format in your actions You can write something like this in...
...Capybara will wait for a short time before raising NoSuchElementError. This is sufficient for basic, server-rendered application. However, as frontends become more complex (more JavaScript, AJAX requests, animations), race...
...Gemfile, make sure to exclude these, if they should not be deployed to the servers. The gems of these groups might not be loaded by rails, however, the deployment process...
...will take longer as the gems will be downloaded and installed to the server. e.g. to exclude the groups cucumber and deploy, add the following to config/deploy/production.rb and config/deploy/staging.rb respectively...