#Go to the release branch
git checkout RELEASE_date
#Pull the last changes
git pull origin RELEASE_date
#Go to the release branch
git checkout RELEASE_date
#Pull the last changes
git pull origin RELEASE_date
13/01/2016
16/01/2016
You can see should restart the server when you see *** System restart required ***
when you start ssh
You can restart with sudo shutdown -r now
You can see your current kernel version with uname -r
You can see all kernel versions in /lib/modules/
sudo apt-get autoclean
All mails received by a user are stored into: /var/mail/username
Open mailbox without initial display: mail -N
Then delete all mails: d *
class MyKlass
include
CONSTANTS
belongs_to
has_one
has_many
accepts_nested_attributes_for
attr_accessible
validates
(wherever it says url.com, use your server's domain or IP)
Login to new server as root, then add a deploy user
sudo useradd --create-home -s /bin/bash deploy
sudo adduser deploy sudo
sudo passwd deploy
And Update the new password
##Merge many has_many
def get_fb_users
FacebookUser.from("
(
(
#{self.facebook_recipients_users.to_sql}
) union (
#{self.facebook_users.to_sql}
)
#To turn it off | |
old_logger = ActiveRecord::Base.logger | |
ActiveRecord::Base.logger = nil | |
#To turn it back on | |
ActiveRecord::Base.logger = old_logger |