
Common Ruby on Rails gem installation errors
Issue 1 - Error in installing pg gem Installing pg 0.19.0 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /home/luke/.rvm/gems/ruby-2.4.1/gems/pg-0.19.0/ext /home/luke/.rvm/rub...
ssh -i MyAmazonKey.pem ubuntu@server-ip
Generate public/private key pair using Puttygen. Add passphrase for the private key Copy the public key. Login to the remote server and go to the ssh directory Open the 'authorized_keys' file and add the public key copied in the above step a...
Introduction Often when developing apps with Rails you need to set up environment variables to keep sensitive information secure in your code. This article looks at how to set up environment config variables in Rails. We’ll look at why we need to...
If you want to revert changes made to your working copy, do this: git checkout . If you want to revert changes made to the index (i.e., that you have added), do this. Warning this will reset all of your unpushed commits to master!: git reset...