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

awsdocs.s3.amazonaws.com

...aws-credential-file ./aws-credential.txt The output should look something like this: arn:aws:iam::322191361670:server-certificate/www.example.com arn:aws:iam::322191361670:server-certificate/testCert Now you have to upload...

...and includes the server certificate Amazon Resource Name (ARN) and GUID: arn:aws:iam::322191361670:server-certificate/www.example.com-2011 ASCACexampleKEZUQ4K If you got the error message similar to A client error...

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

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

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

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

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

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

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

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

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

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

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

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

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

makandra dev

...gems and whether an update is available All config variables and their values Capistrano server config $ bundle exec cap staging doctor

When you make a simple TCP connection to a remote server (like telnet), your client won't normally notice when the connection is unexpectly severed on the remote side. E.g...

...if someone would disconnect a network cable from the server you're connected to, no client would notice. It would simply look like nothing is being sent. You can detect...

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

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

makandra dev
github.com

...just the first few letters of a command, e.g. geordi rs or geordi dev[server] command dependencies, e.g. geordi rspec invokes geordi bundle-install (which bundles only if needed)

...update by pulling/pushing/merging and deploying just as our workflow is devserver: boot a development server Rails-version-agnostic console: open a local Rails console Rails-version-agnostic, or remotely, e.g...