makandra dev

...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...

...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...

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...

...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...

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...

makandra dev
semaphoreci.com

...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...

...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...

...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...

makandra dev

...you want Sidekiq to be able to talk to Redis on staging and production servers, you need to add the following to your configuration: # config/initializers/sidekiq.rb require 'sidekiq' Sidekiq.configure_client do...

config.redis = { url: REDIS_URL } end Sidekiq.configure_server do |config| config.redis = { url: REDIS_URL } end The following step may be skipped for new Sidekiq 6+, since it isn't recommended...

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...

...creation on deploy before, you can do it like this: Install geordi on your servers. It brings the dumple script. Store the attached db.rake to lib/capistrano/tasks/. Require it by adding...

...nokogiri versions with gem uninstall nokogiri and install nokogiri again. Fixing the issue on servers However, on our servers this probably will not work. On the server, gems are stored...

...What you want to do instead is bundle pristine nokogiri and restart the application servers (e.g. b cap passenger:restart) This should install the right nokogiri version and make the...

...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...

...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...

...code from your repository. In order to do so, Capistrano connects to your repository server from the application server you're deploying to with SSH. For this connection you can...

...s ~/.ssh/id_rsa [default] the very same key you used for connecting to the application server - forwarded automatically to the git repository. If you prefer the second way, add this to...

...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.

github.com

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...

...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...

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...

...this 3rd party website! Now download the older version directly from Google's Download Servers: $ VERSION_STRING="85.0.4183.121-1" # Replace this value with the one you copied earlier

...VERSION_STRING}_amd64.deb" It's possible that Google remove older versions from their download servers and not all listed versions are still present for downloading. Keep in mind that the...

github.com

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...

...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.