Capistrano automatically logs each (successful) deployment into a file on your application servers. It is located at the root of your server's project folder, i.e. the parent of releases...
We recently had a problem on a Memcache cluster, where one of the servers showed a significantly worse cache hit rate and a lot more evictions. It turned out that...
...the only reason was that the server was running for a few months longer than the others. Some investigation showed this to be a known problem with Memcache: Once your...
YARD 0.6 adds the ability to serve documentation for gems as well as the current project with yard server. Just like gem server in RubyGems, you can serve gem docs...
...The advantage to YARD’s server is that you don’t need to pre-generate the static docs (with a gem install) before running the server. If you installed your...
"publish_date": { "gte": "2015-01-01" } } } ] } } } Cluster / Nodes / Shards Node ist ein Elasticsearch-Server auf einer Maschine Cluster ist zusammenschluss von Nodes (analog zu einer verteilten SQL Datenbank)
...to slow or offline, you can also read a gem documentation offline. Start a server with gem server and go to http://0.0.0.0:8808/. Here you will find a list...
...takes a significant amount of RAM. It is really ineffective to pay for a server if you need this RAM once a month. Since I don't need to navigate...
This will not work: params[:post].permit(:subject, :body, :author_ids) In your server log you will see a line: Unpermitted parameters: author_ids You need to say this...
...current date in their name, like access.2011-04-20.log, without any need to restart the web server every night (like logrotate does). The last argument above is the rotation time in seconds...
...minutes with a custom shell script. Be advised that in that time frame a server crash (or reboot, if not taken care of) means that those in-memory log files...
You probably already manage servers you often connect to inside the ~/.ssh/config file. What is nice: you may define alias names for hosts so that you can say something like...
...ssh foobar-staging. This is especially helpful for servers whose hostnames are hard to remember or who don't have a DNS record at all (and must be accessed via...
...screen (not strictly necessary, but I had weird clipping issues otherwise). Start a vnc server for your second display with x11vnc -clip xinerama0 -scale 0.8 (or xinerama1 for the second...
...zoom with the scale parameter. Show the screen using vncviewer. Enter localhost as the server. Get accustomed to how this behaves. Mouse movement is a bit weird, because your cursor...
The Angular ngSrc directive serves to properly set an image src via Angular. As anything in Angular, it updates the image as soon as the contained Angular expression changes. However...
...blank" image src when the image is empty. As somebody on Stackoverflow writes, //:0 serves this purpose: It adopts the current protocol, omits the hostname and sets the port to...
-b will read cookies from a given file Example The remote server sets a "foo" cookie to value "bar". We tell curl to store them to a...
httpbin.org FALSE / FALSE 0 foo bar To send cookies to a server, use the -b switch. This URL will render any cookies it received: $ curl -b /tmp/cookies...
...have a piece of code that tries to send a request to a remote server. Now the server is temporarily not available and raises an exception. In order to re...
...compiled to static HTML and CSS, so no need to install anything on your server. If you receive an error launching the preview server (getaddrinfo: Name or service not known...
...SocketError)), just put this into the config/site.rb: configuration.preview_server_host = "localhost...
...checks in Thunderbird. Open Edit -> Account settings and select your incoming mail account. Under Server settings uncheck "Check for new messages on startup" and "Check for new messages every X...
Under Advanced, uncheck "Use IDLE command if the server supports it...
We regularly need to connect to the server in order to e.g. access the production console. Guessing the Capistrano deploy user and then again guessing the right directory on the...
...server is awkward, so we wrote a script that parses config/deploy and gives you the handy command shell-for. Run it from any project directory like this, passing a Capistrano...
...what happens: For drivers like Selenium, Capybara will boot up a Thin or Webrick server in a separate thread. It then makes a GET request to /__identify__ to see if...
...the server is ready to accept requests. Since you don't have a route that responds to /__identify, Capybara will wrap your Rails app in a middleware that responds to...
...Bundler will also look for a http_proxy env variable. With Capistrano Ideally the server you're deploying on exports an https_proxy variable for all shells.
...t have control over the server setup, you can also add this to your Capistrano config: set :bundle_env_variables, { 'https_proxy' => 'http://myproxy...
Host: www.example.com The application/xml accept header might lead to unexpected results on your server. You can force REST Client to ask the server for default text/html that way: RestClient.get...
...makandracards.com/makandra/492109-capybara-running-tests-with-headless-chrome. You might also want to get rid of your local VNC server sudo apt remove tightvncserver. Removed support for serial execution of scenarios tagged with @solo. Serial
For server-to-server requests to the Facebook Graph API you can skip requesting an Oauth token, an instead use the combination of app_id|app_secret as...
...might break while compiling on older patch releases of Ruby 1.9.3 within rvm: *** [err :: server] ruby: symbol lookup error: /path/to/deployment/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.13/lib/mysql2/mysql2.so: undefined symbol: rb_wait_for_single_fd *** [err :: server] ruby...
Ubuntu lets you mount an SSH shell into Nautilus from Places -> Connect to server (select "SSH" as server type). In order to copy a file over SSH from a shell...
I've got often this error on just one server: Err http://de.archive.ubuntu.com precise/universe amd64 Packages 404 Not Found [IP: 141.30.13.20 80] But there was no problem with the network...
...connection or the de.archive.ubuntu.com server. After I deleted the local lists cache with rm -r /var/lib/apt/lists it works again...