...course of development you may need to mock HTTP responses. This is a simple service to return various HTTP responses...
You need to install the following packages before you can build the Nokogiri gem: sudo apt-get install libxml2-dev...
This is for people recovering from Subversion. Get an existing from the server for the first time git clone git@example.com:repositoryname See what's changed git status Check in locally...
...git commit -m "good description" Push local commits to the server git push Get and merge updates from the server git pull Stage a file for the next local commit...
...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...
...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...
Weighttp is threaded and might exhaust resources of an application better than ApacheBench or httperf. You need libev installed.
...application framework and tools for rapid development of maintainable high performance & high scalability protocol servers & clients...
...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...
...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...
...signed and accepted) SSL certificate for mywebsite.com, forward the traffic to our actual dev server. On linux, this can be achieved with these steps (instructions for Ubuntu): Resolving mywebsite.com to...
...that certificate with "caddy" Install caddy sudo apt install caddy Disable the global caddy service sudo systemctl stop caddy.service sudo systemctl disable caddy.service Create a file named Caddyfile mywebsite.com {
...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...
...need to pay attention if you redirect outside of Rails, e.g. via your web server configuration. Dealing with incorrectly cached redirects The only fix is to keep redirecting the user...
If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this...
To capture and log Sentry events locally during development without sending to the server, add this to config/initializers/sentry.rb inside the Sentry.init block: if Rails.env.development? # Use dummy transport to prevent...
...appendix below for available event attributes end DummyTransport prevents actual HTTP transmission to Sentry servers; events are captured locally but not sent background_worker_threads = 0 to disable async processing...
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 ...
...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...
...response in form round trips, since the id can not be assigned by the server while it may be outputting Unpermitted parameter: :id within the console. You are not setting...
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...
...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.
...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...
...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...
We’ve been working on one of our first Angular projects with a Rails backend. It’s been a great...
A small library to provide the Rails I18n translations in Javascript clients.