...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...
...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...
...assume that all commands will be executed as local postgres user on a database server master. Please mind that you should stop the replication on a slave PostgreSQL server before...
...dump. This is useful for moving the content of a database to an other server. WARNING: Sourcing this dump will drop the existing databases in the cluster if they exist...
...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...
...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...
...for HTTP or 443 for HTTPS. You can use nmap to find out what service is running behind a given port, and most often see some details about it. This...
...can be helpful if servers don't offer the services you expect for some ports. If you'd like to see what ports are listing on your local machine, you...
...code, it can just merge all files together. You may need to restart your server if you add files to config/locale. Using subfolders You can also use subfolders, but then...
...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...
...config the HTML screenshot will reference assets in the same location where your development server usually provides them. Make sure to add this to config/environments/test.rb # Do not generate digests for...
...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...
...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.
...Rails: How to write custom email interceptors Check if you have a local mail server listening Ensure that e-mail arrives at the inbox without being blocked
...to a editor like gedit, this is not possible for remote shells to our servers. Getting accustomed to a CLI editor will pay off in the long term. Terminal shortcuts...
...work with other Linux distros, as long as you are using the Xorg display server. It likely won't work on Wayland. The script assumes that external display order is...
...the load of your application. Decide whether cronjobs should run on one or all servers Note We use the whenever to automatically rewrite the crontab when we deploy. You have...
Um Server Infrastrukturen schnell und reproduzierbar konfigurieren zu können setzt man auf so genannte Configuration Management Lösungen. Die bekanntesten sind Puppet, Chef, Salstack und Ansible. Dabei hat Ansible den größten...
...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...
...or the ENV variable RUBY_YJIT_ENABLE=1 for starting Rails processes on your server...
...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...
...IDENTIFIED BY 'some_password'; GRANT REPLICATION SLAVE ON *.* TO 'replicator'@'%'; Adjust MySQL configuration : Edit /etc/mysql/my.cnf: server-id = 1 log_bin = /var/log/mysql/mysql-bin.log replicate-do-db = some_project_production replicate-do-db...
...other_project_production replicate-ignore-db = mysql server-id needs to be unique among all connected master and slave servers. When replicate-do-db is provided only the chosen databases...
...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...
...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...
...Discuss with your mentor Instead of migrations, could we simply log into the production server's SQL console and alter tables there whenever we need a change?
...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...