We're adding a script console-for to open a remote Rails console with one command. Also have a look...
...to the instructions provided at the end of the setup script. Restart Apache: sudo service apache2 restart This also works when you previously ran your Passenger using MRI. Just run...
A memory leak is an unintentional, uncontrolled, and unending increase in memory usage. No matter how small, eventually, a leak...
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...
...target machine: ssh remote-machine sudo vim /etc/ssh/sshd_config Set X11Forwarding yes and save sudo service sshd reload (existing connections will not be terminated...
When you have a program running in a hidden X screen (like with Xvfb for Selenium tests) you may want...
...gzip_types directives in nginx you might not be able to successfully reload the service and get this error message instead: nginx: [emerg] could not build the test_types_hash...
...and link it to /etc/apache2/sites-enabled with something like the following ^ NameVirtualHost *:80 <VirtualHost *:80> ServerName application.local DocumentRoot /opt/application/public RailsEnv development RailsAllowModRewrite off <VirtualHost *:443> ServerName application.local DocumentRoot /opt/application/public RailsEnv development...
If your rails application is unable to send mails, it might be useful to debug your settings using the rails...
...your config/environments/development.rb: config.middleware.insert_after(ActionDispatch::Static, Rack::LiveReload) Run guard init livereload. Restart your server. Use CSS live reload Run guard -P livereload in a console, and keep it open...
Geordi now has a script that runs capistrano with all known deploy targets (i.e. staging, production...). Use with geordi capistrano...
To ensure Spring is not running: bin/spring stop pkill -f spring To prevent Spring from starting again: export DISABLE_SPRING...
...work, we prefer another solution now: Hide your Selenium browser window with a VNC server. If you would like to hide the annoying selenium browser window that always gets the...
revisions << capture(:cat, 'REVISION').strip end end # Never skip asset compile when servers are running on different code next if revisions.uniq.length > 1 changed_files = `git diff --name-only...
...file without caring about BASH escaping: # /home/user/foo.sh echo "$(hostname -f): $(uptime)" echo "${USER}" echo "${SERVERLIST}" | bolt command run @foo.sh --run-as root --targets - Use script run to run a ruby...
#!/usr/bin/env ruby # /home/user/bar.rb puts 'Hello, world!' echo "${SERVERLIST}" | bolt script run ./bar.rb --targets...
Sometimes you want to see what data you get through a TCP or UDP connection. For example, you want to...
If you need the debug output of the puppetmaster running with passenger you have to uncomment this setting in the...
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...
Put the following into config.ru in your Rails root folder: # Require your environment file to bootstrap Rails require ::File.dirname(__FILE...
I ran into a situation in which I received the yarn integrity check warning when starting the rails console even...
If you get an error message like this: You have already activated some-gem 1.2.3, but your Gemfile requires some...
Once you start introducing partial updates, you open yourself for caching problems. doing partial updates means all cached copies of...
i keep looking for ways to help people 'get' REST. not URLs or HTTP Methods; but REST itself - in a...
Create htpasswd entry and print to stdout: $ sudo apt install apache2-utils # Optional $ htpasswd -n $USERNAME New password: