...and application logos next to the dynamically created images versions of uploaded files. To serve all of those with limited bandwidth and high quality, images formats and compression strategies have...

...as enumerable) and the using methods iterated over them. As the using methods like serve do not actually need all routes, but may return early, a change has been introduced...

...of the Content-Type: HTTP header or the equivalent in the protocol used to serve the style sheet. The @charset CSS at-rule. Sprockets The asset pipeline (with Sprockets) does...

databases 32 Save and close config file, then restart Redis: sudo service redis-server restart Confirm your configuration has been updated. The following command should return "OK...

...no longer match. If you see an error like this when deploying to a server, you can remove your old (e.g. RSA based) fingerprints from ~/.ssh/known_hosts: Exception while executing as...

Here we cover one specific issue: Once you have started your development Rails server and esbuild with the --watch option (if you used jsbundling-rails to set up, you...

makandra Curriculum

...files from their CDN so developers can get started quickly. However, we want to serve all CSS ourselves and don't want to depend on external sources. To integrate Bootstrap...

github.com

...values stored in one request may be available to the next (depending on your server). request_store wipes all data when a request ends and makes per-request global storage...

...within the version call. For example, if you migrated legacy videos from the old server, you still want to offer them for downloads, but never generate them when a new...

You can explain how JavaScript in the browser differs from Ruby on the server: it runs on the user's machine, has no implicit return, needs parentheses to call...

...just about to be transferred. This includes time_pretransfer and also the time the server needed to calculate the result. time_total The total time, in seconds, that the full...

...if you're using whenever). Use whatever else to build the Cronjob on your server. job_type :enqueue, 'cd :path && :environment_variable=:environment bundle exec bin/enqueue :task' every 5.minutes do...

...mode Rails assumes that your application lives in the same time zone as your server's local zone settings. In this mode ActiveRecord will not try to convert times coming...

...Time.parse when saving or loading a record. Find out the locale zone of your server by doing date on the shell. E.g. our main application servers are running on Berlin...

...BETTER_ERRORS_EDITOR_URL="rubymine://%{file_unencoded}" Step 5: Try it out! Restart your server (in a new terminal!) and add a raise statement to your local application.Does better_errors...

Sometimes, through some firewall or proxy misconfiguration, you might have to deploy to a server that cannot access the git repository. Solution 1: HTTP Proxy (this is the preferred fix...

...repo is on github, use this: Install socat Add a ~/.ssh/config on the target server(s) with permission 0600 and this content: Host github.com ssh.github.com User git Hostname ssh.github.com

...Usage: /usr/bin/pg_ctlcluster For example /usr/bin/pg_ctlcluster 47 main start With systemd you can start/stop the services via: systemctl postgresql@ - .service For example systemctl start postgresql@14-main.service Details The Version of PostgreSQL to...

...the config in /etc/postgresql/$VERSION/$CLUSTERNAME/. start | stop | restart | reload Available versions and clusters, Serverstatus ~# pg_lsclusters Ver Cluster Port Status Owner Data directory Log file 10 main 5433 online...

...our Active Record models to JSON. JSON Schema to test the responses of our server. SwaggerUI to document the API. It worked The concept worked really good. Here are two...

...know to handle. Tests We used JSON Schema to test the responses of our server. This was really nice and we implemented it in a similar way like here.

getbootstrap.com

...you do not load the whole package. Now you can start your webpack-dev-server to see if the packs can be built. You will see a lot of errors...

When you add or change an initializer you need to restart your Rails server or console for the changes to be picked up. Only changes in app are picked...

...form partial as layout and passing in a block. Your template or partial then serves as the surrounding layout of the block that you pass in. You can then yield...

...If your code uses threads, or if you're using a multi-threadeded web server like Puma, sharing $redis that way means all threads use a single Redis connection and...

Uninstall everything related to MySQL 5.7 with apt remove mysql-client mysql-server libmysqlclient-dev mysql-common Check if you removed everything using dpkg -l | grep mysql

...and "Ubuntu Wily" (assuming Xenial is not yet provided) Run apt-cache policy mysql-server If this shows a 5.6 version, continue. If not, check your /etc/apt/sources.list.d/mysql.list. It should look...

makandra dev

...gem install ruby-debug (Ruby 1.8) or gem install debugger (Ruby 1.9) Start your server with script/server --debugger Set a breakpoint by invoking debugger anywhere in your code

...the page loading will seem to "hang". Switch to the shell you started the server with. That shell will be running an irb session where you can step through the...

If you want to make a request to that site's web server without actually talking to www.example.com (e.g. because this is a load balancer's address but...

...HTTP 1.1, your client (browser) uses the HTTP header "Host" to tell the web server what host it's requesting for. This is what we want to change in order...