...instance and can have multiple threads, that handle the incoming requests. Example: A Puma server with 2 workers and 1 thread each can handle 2 request in parallel. A third...
...in parallel, but once one thread is blocked, another can continue. Example: A Puma server with 1 worker and 2 threads can handle 2 requests. A third request has to...
Ubuntu 18.04 uses systemd to manage services. There are basically two commands for listing all services and manipulating the state of a certain service: service and systemctl: service manages System...
systemctl controls the state of the systemd system and service manager. It is backwards compatible to System V and includes the System V services Therefore I prefer...
bundle outdated compares the versions of all gem dependencies against the gem server Get Info About Your Ruby Gems Environment gem environment Mocking Requests With Partial URIs Using...
...const smp = new SpeedMeasurePlugin() const config = environment.toWebpackConfig() module.exports = smp.wrap(config) Restart your webpack dev server, or explicitly compile your assets. Check your terminal for extra output like this:
...the dev server, make changes and inspect the recompile response. SMP metrics will be included upon every compile, so you can see which modules or files your recompile hit.
In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like Timecop, the browser controlled by Selenium will still see the...
To change RAM size, VDISK size or VCPU count of an openstack instance you have to use nova resize. You...
...a database console, run SET GLOBAL query_cache_type=OFF; and restart your rails server. You can also disable the cache on a per query basis by saying
...the case, then you can try to deprioritize the ipv6 connection to the rubygems server, as described here. To do so, simply add "precedence 2a04:4e42::0/32 5" to the...
...is a nice tool to show details about TLS/SSL connections: ~> sslscan some-host-at.makandra.de Testing SSL server some-host-at.makandra.de on port 443 Supported Server Cipher(s): Failed SSLv3 256 bits ECDHE-RSA-AES256...
...bits ECDHE-ECDSA-AES256-SHA384 Rejected SSLv3 256 bits ECDHE-RSA-AES256-SHA ... Prefered Server Cipher(s): TLSv1 128 bits ECDHE-RSA-AES128-SHA SSL Certificate: Version: 2 Serial Number...
...integration test docker container and connect with it apt update apt-get install openssh-server -y apt-get install vim vim /etc/ssh/sshd_config # Edit `PermitRootLogin yes` and `GatewayPorts yes`
Installing gems on a server that has no access to the internet (especially rubygems.org) requires to bundle the gems into the repository itself. This requires to adjust the bundle config...
...It's a mature library that can do the job frontend-wise. On the server, we'll use Carrierwave, because it's capable of caching images. (FYI, here's how...
...Gallery, but will be the params key when -# sending the image files to the server = gallery_form.label :add_images do = form.file_field :add_images, class: 'hidden', multiple: true Add Images = gallery_form.submit...
...the bandwidth internally, you can use netcat and dd like this: On your first server: nc -v -l 55333 > /dev/null On your second server: dd if=/dev/zero bs=1024K count...
...rarely, it can happen when the client is attempting the initial connection to the server. In this case, if your connect_timeout value is set to only a few seconds...
...Aborted_connects'. It will increase by one for each initial connection attempt that the server aborts. You may see reading authorization packet as part of the error message; if so...
...type, inputmode and autocomplete – including a live preview for iOS and Android! It also serves as a nice reference for available values...
...app/inputs/grouped_collection_select_input.rb (SimpleForm will pick it up automatically; if it does not, restart your Rails server) and use it in your form with that new :group_by option. Note that this...
...http with https in the Gist link). connect the clients (aka agents) to the server (aka puppetmaster) following these instructions add pluginsync = true to the [main] section of puppet.conf on...
...the clients and the server #Important sudo all the time! If you connect an agent to the puppetmaster once without using sudo and later try to connect using sudo, you...
We regularly need to connect to the server in order to e.g. access the production console. Guessing the Capistrano deploy user and then again guessing the right directory on the...
...server is awkward, so we wrote a script that parses config/deploy and gives you the handy command shell-for. Run it from any project directory like this, passing a Capistrano...
...shows an approach on how to implement encrypted passwords with the AWS Key Management Service (KMS). For most applications it's enough to use a hashed password with a salt...
...with a public key from KMS (you can store the public key in your server code). In your database store the encrypted hash, the salt, plus some "key ID" that...
When storing files for lots of records in the server's file system, Carrierwave's default store_dir approach may cause issues, because some directories will hold too many entries...
...FILES] # Run Cucumber features geordi dep[loy] [STAGE] # Guided deployment across branches geordi dev[server] # Start a development server geordi du[mp] [TARGET] # Handle dumps geordi eu[rest] # Open the...
Capistrano automatically logs each (successful) deployment into a file on your application servers. It is located at the root of your server's project folder, i.e. the parent of releases...
...you require and Rails will use the vendored version of the gem after a server restart. Unfortunately you need to perform some additional steps to marry Rails and the copied...
...script is aware of vendored gems and will scp-copy them to the remoty server. Without Bundler Don't use gem unpack since the gemspec will be missing. Use this...
...this to your config/routes.rb: match '/404' => 'errors#not_found', via: :all match '/422' => 'errors#server_error', via: :all match '/500' => 'errors#server_error', via: :all Add an ErrorsController like this...
...action :verify_authenticity_token def not_found render :status => 404, :formats => [:html] end def server_error render :status => 500, :formats => [:html] end end Add the corresponding views. Delete the static...