In order to send messages through a Gmail account (also applicable to Google Apps accounts) add the following parts to your config files:
Files:
- config/environments/production.rb
- config/gitlab.yml
## Email settings | |
# Email address used in the "From" field in mails sent by GitLab | |
email_from: [email protected] |
config.action_mailer.delivery_method = :smtp | |
config.action_mailer.perform_deliveries = true | |
config.action_mailer.raise_delivery_errors = true | |
config.action_mailer.smtp_settings = { | |
:address => 'smtp.gmail.com', | |
:port => 587, | |
:domain => 'gmail.com', | |
:user_name => '[email protected]', | |
:password => 'password', | |
:authentication => 'plain', | |
:enable_starttls_auto => true | |
} |
if ! [ -e "$HOME/.ssh/id_rsa.pub" ]
then
echo "Generating ssh key..."
echo "Please enter the email you want to associate with your ssh key: \c"
read email
ssh-keygen -t rsa -C "$email"
fi
if [[ ! -x $(/usr/bin/which -s brew) ]]; then
echo "Installing Homebrew..."
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
fi
echo "Put Homebrew location earlier in PATH ..."
echo "\n# recommended by brew doctor" >> ~/.zshrc
echo "export PATH='/usr/local/bin:$PATH'\n" >> ~/.zshrc
source ~/.zshrc
echo "Installing Homebrew Versions..."
brew tap homebrew/versions
echo "Installing Git..."
brew install git
brew update
echo "Installing Build Essentials..."
brew install readline openssl coreutils
brew link --force openssl
brew link --force readline
echo "Installing Handy Tools..."
brew install wget curl tree ctags hub ssh-copy-id keychain zsh vim tmux
echo "Installing Databases..."
brew install mysql redis
echo "Installing Web Servers..."
brew install nginx jetty8
echo "Installing Programming Environments..."
brew install sbt scala node
echo "Installing RVM and Ruby..."
\curl -L https://get.rvm.io | bash -s stable --ruby
source $HOME/.rvm/scripts/rvm
rvm use default --default
gem update --system
gem install bundler
echo "Embracing Cask..."
brew tap phinze/homebrew-cask
brew install brew-cask
echo "Installing Essential Applications with Cask..."
brew cask install google-chrome virtualbox vagrant macvim textmate iterm2 dropbox droplr intellij-community sequel-pro alfred
brew cask alfred link
http://feedback.gitlab.com/forums/176466-general/suggestions/3726325-improve-email-notification-system