...ms, then animate) When you wait for I/O most of the time (web servers, crawlers) Most current and future HTML5 browser APIs have async signatures. Async frontend example
...Warum nicht dem Browser verbieten gefährliche Dinge zu tun, z.B. Inline-Skripte auszuführen? Funktionsweise Server setzt einen HTTP-Header, der detailliert beschreibt, welche (potentiell gefährlichen Dinge) die Webseite tun darf...
...z.B. Analytics-Snippet o.ä.), kann man den nonce-Mechanismus verwenden. Dazu generiert der Server für jeden Request einen zufälligen Wert (eine "Nonce"), und schreibt ihn in Header und an...
...or the ENV variable RUBY_YJIT_ENABLE=1 for starting Rails processes on your server...
...Basically a comprehensive Rails Template. Prepares your development environment and lets you select web server, template engine, unit and integration testing frameworks and more. Generate an app in minutes using...
...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...
...passenger worker. Please update the card accordingly if you solve that issue. If your server is running passenger enterprise, rather use that tool to inspect your process.
...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...
...the PDF additional assets (CSS, images, Javascripts) are required When using a singlethreaded development server like Thin there is no additional worker process available to deliver those assets.
...set config.allow_concurrency = true (default in Rails 4) Note that this allows concurrent requests served from the same process using threads. This might cause unexpected behavior if your application or...
...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...
...their custom DSL and use Rake instead. For connecting with and operating on the servers, they bring a new gem SSHKit which does the heavy lifting. It's SSHKit's...
...user setting any more. Set the deploy user directly as an option to the server directive. Also, the roles syntax has become more ruby'esque, and the first server will...
...you to log to multiple sinks. You know this behavior from from the rails server command, that both logs to standard out and the log/development.log file. Here is an example...
...ActiveSupport::BroadcastLogger.new(stdout_logger, file_logger) broadcast.level = Logger::INFO config.logger = broadcast end end Sidekiq.configure_server do |config| if ENV['RAILS_ENV'] == 'development' || ENV['RAILS_ENV'] == 'test' stdout_logger = ActiveSupport::Logger.new...
...bind '0.0.0.0', 3000, { key: localhost_key, cert: localhost_crt, verify_mode: 'none' } start your server as usual, but go to https://localhost:3000 bundle exec rails s Accept the certificate...
...following setup allows you to start Terminator in a split view with the Rails server running in the left pane and all remaining processes running via foreman in the right...
type = Terminal parent = child1 profile = default command = env startup_cmd="bundle exec rails server" startup_attrs="-p 3000" bash [[[terminal3]]] type = Terminal parent = child1 profile = default command = 'env startup...
...nginx is much more straightforward. A reverse proxy is a "man in the middle" server that tunnels requests to another server. You can use for things like: Expose a local...
...service that you cannot directly reach over the internet "Change" the domain or path of a web application by rewriting them on the fly Instantly change servers that respond to...
...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...
...stricter settings than the more liberal MariaDB. If your app explodes after changing SQL servers, you might be able to fix it by setting the SQL mode to the value...
...in your previous server version. Important SQL mode flags These SQL modes will probably give you the most headaches: STRICT_TRANS_TABLES, STRICT_ALL_TABLES Introduced in MySQL 5.7, these...
...as expected (which might be compromised e.g. due to security products or enterprise proxy servers...
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...
...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...
...those who already own an SSL certificate (e.g. using it in the Apache HTTP Server) and need to feed it to a Tomcat application. The main issue is that you...
...not need to add any intermediate certificate authorities to the keystore. Set up your server.xml You are now ready to use your certificate. Modify your server.xml inside the application directory...
...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...
...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...
...this case we don't have to manage the database configuration individually on every server. In a specific case, one of our projects supports sign in by SAML, but not...
...aws-credential-file ./aws-credential.txt The output should look something like this: arn:aws:iam::322191361670:server-certificate/www.example.com arn:aws:iam::322191361670:server-certificate/testCert Now you have to upload...
...and includes the server certificate Amazon Resource Name (ARN) and GUID: arn:aws:iam::322191361670:server-certificate/www.example.com-2011 ASCACexampleKEZUQ4K If you got the error message similar to A client error...