...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...
...Cli is working: $ aws iam list-server-certificates { "ServerCertificateMetadataList": [ { "Path": "/", "Arn": "arn:aws:iam::5xxxxxxxxxxx:server-certificate/www.example.com-201307-201407", "ServerCertificateId": "AXXXXXXXXXXXXXXXXXXXX", "ServerCertificateName": "www.example.com-201210-201310", "UploadDate": "2012-10-10T11...
} ] } Upload your certificate: $ aws iam upload-server-certificate --server-certificate-name www.example.com-2013010-2014010 --certificate-body file://www.example.com.crt --private-key file://www.example.com.key --certificate-chain file://www.example.com.ca-bundle { "ServerCertificateMetadata": {
...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...
...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...
...but allows SSH, you can tunnel your e-mail connection through a trusted, intermediary server: sudo ssh -i /home/local-user/.ssh/local-user.key -L 143:mail-server.tld:143 remote-user@trusted-server.tld Explanation for the command above: | sudo | Secure...
| ssh -i /home/local-user/.ssh/local-user.key | Private half of your SSH key for the trusted server | | -L 143:mail-server.tld:143 | Forward connections to port 143 on your mail server mail-server.told to port...
...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...
...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...
...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...
...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...
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...
...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...
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...
...recipe, Capistrano will fail if you deploy to a stage where none of the servers has the role the error complains about, "something" in this case. However, you can hack...
...and tries to call a method that is only available for that group of servers, you'll get another error: `foo.bar' is only run for servers matching {:roles=>:something}, but...
...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...
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...
...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.
Sometimes, through some firewall or proxy misconfiguration, you might have to deploy to a server that cannot access the git repository. Solution 1: HTTP Proxy (this is the preferred fix...
...repo is on github, use this: Install socat Add a ~/.ssh/config on the target server(s) with permission 0600 and this content: Host github.com ssh.github.com User git Hostname ssh.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...
...gems and whether an update is available All config variables and their values Capistrano server config $ bundle exec cap staging doctor
...a database console, run SET GLOBAL query_cache_type=OFF; and restart your rails server. You can also disable the cache on a per query basis by saying
Here is a hacky way to load dumps directly from the source server, without fully copying them over and extracting them first. It may break horribly for you. This is...
...apt-get install pv Know the location of the dump file on the remote server. We'll use /mnt/dumps/my_project.dump.bz2 in the example below. Find out the size of the (bzipped...
...integration test docker container and connect with it apt update apt-get install openssh-server -y apt-get install vim vim /etc/ssh/sshd_config # Edit `PermitRootLogin yes` and `GatewayPorts yes`
...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...
...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...