In dieser Card machst du einige Übungsaufgaben um Linux Server mit Ansible zu verwalten. Da es vermutlich zu aufwendig ist alles von 0 auf selbst zu erstellen, solltest du prüfen...
Beachte bei deinem Setup, dass du vielleicht nicht nur eine Wordpress Installation pro Server haben möchtest (mehrere Vhosts beim Nginx, mehrere PHP-FPM Konfigurationen, mehrere User). Dafür müssen auch...
This Capistrano task runs a command on all servers. bundle exec cap production app:run cmd='zgrep -P "..." RAILS_ROOT/log/production.log' Code # lib/capistrano/tasks/app.rake namespace :app do # Use e.g. to grep logs...
...on all servers: # b cap production app:run_cmd cmd='zgrep -P "..." RAILS_ROOT/log/production.log' # # * Use RAILS_ROOT as a placeholder for the remote Rails root directory. # * Append ` || test $? =1;` to...
...power to ['creatable_cards'] The reason for this behavior is that the Capybara test server is running in another thread, and the RSpec thread can't "see" the exception at...
...user sees in this situation, e.g. an error flash. ¹ Rack::Test features emulate the server within the same thread and will therefore "see" those exceptions The test thread and server...
...on all of them. 3) Switch to a persisted storage for sessions on the server Another option to prevent this session replay attack is to switch to persisted storage for...
Um Server Infrastrukturen schnell und reproduzierbar konfigurieren zu können setzt man auf so genannte Configuration Management Lösungen. Die bekanntesten sind Puppet, Chef, Saltstack und Ansible. Dabei hat Ansible den größten...
For our production servers we use Passenger as a Ruby application server. While it is possible to use Passenger for development as an Apache module, the installation process is not...
Get performance behavior that is closer to what you'll get on production servers Get a full-featured Ruby application server without configuration Usage Install Passenger Standalone with gem...
Running rails server will start a local server that you can access via http://localhost:3000. When you are working on multiple web apps, they will likely set cookies with...
...you switch to another app. A better way is to use our own daho.im service. All daho.im subdomains resolve to your local IP (127.0.0.1). That means you can use a...
wkhtmltopdf/wkhtmltopdf wkhtmltopdf/packaging Please note: We do not compile the package ourselves on the server. Instead, we install the most recent available version of the prebuilt package. Example:
...app server runs on Ubuntu 24.04, and you request version 0.12.6.1-3, we would install the corresponding package for Ubuntu 22.04 (Jammy). Be aware that using a package not compiled...
...who is managing the identity provider (IDP). But you can setup a local keycloak server to act as your IDP to play around with. This might seam intimidating, but is...
...ADMIN_PASSWORD=admin --volume ./keycloak_data:/opt/keycloak/data/h2/ quay.io/keycloak/keycloak:24.0.2 start-dev The database of the server is persistent and stored in keycloak_data. You can stop the container and restart it...
Sometimes, the rails dev server doesn't terminate properly. This can for example happen when the dev server runs in a RubyMine terminal. When this happens, the old dev server...
...blocks port 3000, so when you try to start a new server, you get the error: Address already in use - bind(2) for "127.0.0.1" port 3000 (Errno::EADDRINUSE)
Work with the stash git stash Learn how to work with a server: git clone git push git fetch git pull Learn to use the tool tig
...with SSH. Otherwise, you would have to send your git credentials to the remote server every time you interact with it. Resources Basic tutorial Proper git config Interactive Git Cheatsheet...
There are two distinct ways of commenting Haml markup: HTML and Ruby. HTML comments This will create an HTML comment...
...your cookies. There is simply no case when the browser would talk to the server via unencrypted http:// requests. Why you might need secure-only cookies anyway A security audit...
...Rails app you can add a middleware that automatically sets the Secure flag to all server-set cookies. The flag is only added for secure requests, so cookies will still...
When you create a temporary file (e.g. to store a generated Excel sheet) and try to send it to the...
Du verstehst, welche Aufgaben der Kubernetes API Server übernimmt. Du weißt, wie der API Server in das Management des Cluster States involviert ist. Du weißt, auf welchem Port der...
...API Server per Default hört und welches Protokoll gesprochen wird. Du weißt, dass der API Server ein self signed Certificate verwendet und wie du diesem auf einem anderen System vertrauen...
...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...
...is a single process in play. It runs both your test script and the server responding to the user interactions scripted by your test. A Selenium (Javascript) test has a...
...you spawn by running cucumber. A second thread within the same process runs the server responding to your test. A second process runs the browser that is scripted by the...
The Oracle mysql client has an odd behavior if your server uses latin1 as default character-set-server. Command mysql --version mysql Ver 8.0.31-0ubuntu0.20.04.2 for Linux on x86...
...character_set_database | utf8mb4 | | character_set_filesystem | binary | | character_set_results | latin1 | | character_set_server | latin1 | | character_set_system | utf8 | +--------------------------+----------------------------------------------+ Explanation The client can't handle the --default-character-set...
Here is how to start your Rails application to accept both HTTP and HTTPS in development. gem install passenger
...codecs to your user. A second version with modern standards like WebM can be served to compatible clients. Video Formats and Codecs When talking about digital videos, people often just...
On application servers, gems are usually bundled into the project directory, at a location shared across deployments. This is usually shared/bundle inside your project's root directory, e.g. /var/www/your-project/shared/bundle/.
Understand how we're dealing with exception notifications. Integrate exception notification into your MovieDB. Use your personal e-mail as...
...gems and whether an update is available All config variables and their values Capistrano server config $ bundle exec cap staging doctor
...with HTTP headers: jQuery will not set the X-Requested-With header. On your server, requests will not look like AJAX requests (request.xhr? will be false). jquery-ujs will not...