makandra Curriculum

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

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

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

...with your mentor. In particular: How much load does each implementation cause on the server? Can you withdraw access permissions from someone who used to have them? Hint

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

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

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

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

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

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

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

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

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

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

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

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

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

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

makandra dev

...path is /etc/ImageMagick/policy.xml Remove/Comment lines after If you need it enabled for an app server, ask your operations team to do that for you...

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

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

DevOps Curriculum

...solche manuellen Tätigkeiten möglichst vermeiden. Wie du in den Ansible Kapiteln beim konfigurieren von Servern schon gelernt hast, hat es seine Vorteile, seine Konfigurationen als Code in einem Git Repo...

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