web.archive.org

...more information, see the linked page. cap invoke To run shell commands on all servers, you can also use Capistrano's invoke. Its syntax is a bit more complicated:

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

...your keyring or ssh-agent. Your ssh-agent will throw all keys against a server until one matches. Most servers will deny access after 5 attempts. This issue might come...

You can use gem list to list all gems available from a remote gem server: gem list -r --clear-sources -s 'https://user:password@gemserver.tld/' This is useful to debug cases...

...character_set_database | latin1 | | character_set_filesystem | binary | | character_set_results | latin1 | | character_set_server | latin1 | | character_set_system | latin1 | | character_sets_dir | /usr/share/mysql/charsets/ | +--------------------------+----------------------------+ 8 rows in set (0.01 sec...

...default-character-set is not valid and you need to use character-set-server instead. Check you error log if mysql start leads to a timeout. After this check if...

...and Bundler 1.17.3 with https://rubygems.org/ anymore. This is a result of a server certificate on December 5th, 2020. The resulting errors will look like following: TypeError: can't modify...

...certificate for https://index.rubygems.org/versions. Error fetching data: hostname was not match with the server certificate (https://rubygems.org/*) Fix 1: Use docker and gemstash (recommended for makandra employees)

...version of net-ssh which is used by Capistrano to connect to your remote servers. From time to time, crypto ciphers used by SSH are removed (on servers) because of...

...with such an old cipher, you will see a error like that on your server: fatal: Unable to negotiate with 1.2.3.4 port 52296: no matching cipher found. Their offer: aes256...

Microsoft Exchange service administrators can enable Exchange Web Services (EWS) which is a rather accessible XML API for interacting with Exchange. This allows you to read and send e-mails...

...what you can do with EWS, with accompanying Viewpoint code. Connecting to an exchange server require 'viewpoint' include Viewpoint::EWS endpoint = 'https://your.exchange.server/ews/Exchange.asmx' user = 'your-user' pass = 'your-password...

If your requests blow up in Ruby or CURL, the server you're connecting to might only support requests with older SSL/TLS versions. You might get an error like: OpenSSL...

...SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=unknown state SSL Server Test This SSL Server Test can help finding out which SSL/TLS versions the server can handle...

If you are a makandra employee and are running your app on makandra servers, you can skip this step. All servers and developer machines at makandra are already configured...

...is not gitignored, or your changes are only valid for your machine, not any servers. Inside a Docker environment, this file might be ignored. How to fix. Globally:

...trusted, secure machine only. Usually this is your production environment. Run this on the server (not on your machine) as root.\ Replace your-domain.tld with the domain you request the certificate...

...media to your SSL dealer. The key should never be transfered away from the server...

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

...make two requests for every page. The browser will first request /foo, then the server will return a redirect to /foo/ (mind the trailing slash), then the browser makes a...

...retrieve the actual HTML. You can probably fix this by configuring your static web server. What we want is: Accessing /foo should directly return the content of /foo/index.html without a...

Call with the server's hostname (and user if you have no SSH agent), e.g. install-gems-remotely my.server.com # or without agent: install-gems-remotely me@my.server.com When you call it...

...as the gemspecs of all vendored gems in to a temporary folder on the server and does a bundle install there. If you need to install gems from anothere Gemfile...

...send a local file to the browser, you can save resources on the application server by setting the :x_sendfile option to true. This option is activated by default for...

...Saving files to a directory that is not shared between deploys or servers If you save your uploads to a made up directory like "RAILS_ROOT/uploads", this directory goes away...

...every release gets a new). Also this directory is not shared between multiple application servers, so your uploads are randomly saved to one local filesystem or another. Fixing this afterwards...

github.com

If you have different users for different servers, don't use set :user. Encode the username into the server definition instead: server "username@servername.tld", :app, :web, :cron, :db, :primary => true

makandra dev

Connect to your IMAP server. If you have SSL enabled: openssl s_client -connect your-server:993 if your server supports STARTTLS: openssl s_client -starttls imap -connect your-server...

...log into IMAP, send the following string (incl. "01"!): 01 LOGIN user@domani.io $password The server should return something like: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR ... 01 OK Logged in

progfu.com

...adding gems, it starts to take really long to start up, be it the server, console or just running a single spec. Zeus is smart, you don’t have to...

...do is create a JSON config file via zeus init and then start the server zeus start. After that, you’re ready to go, all you need to do is...

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

...form. It runs inside your application and does not depend on an external SaaS service. Truemail supports different validation "layers": Regex validation: if the given address is syntactically valid

...on the other hand means that Truemail will connect to the target mail server and try to start email delivery. If you do this too often, your app servers might...

Install OpenSSH Server: sudo apt-get install openssh-server To check if the server is running you should get no error when you restart it: sudo /etc/init.d/ssh restart

...ssh server is ready to use. To add additional security edit your sshd_config (gksudo gedit /etc/ssh/sshd_config): # Deny root login: PermitRootLogin no # To whitelist users: AllowUsers USERNAME1 USERNAME2

This is an attempt to list some of those things: On the server Always optimize: Don't do stupid things with the database. Avoid "n + 1" queries. Don...

...complicated table, or crazy visualization in a separate AJAX call? Move work from the server to the client. On the client The biggest issue on the client are loading times...

httpd.apache.org

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