Diego999 / Back-To-School

Ruby on Rails project, Bsc 6 HE-Arc 2013-2014
GNU General Public License v2.0
0 stars 1 forks source link

Deploy example on productive server #2

Closed Diego999 closed 10 years ago

maeberli commented 10 years ago

First try to deploy the ProofOfConcept_EMail branch to the server. 1) cloned git repository 2) checked out the ProofOfConcept_EMail branch 3) Setup of the apache virtual host file 4) created unique application key with:

rake secret

5) created _./config/initializers/secrettoken.rb file

BackToSchool::Application.config.secret_key_base =  'KEY_GOES_HERE'

6) appended the following lines to ./config/environments/production.rb

  # Back-To-School modificiations
  config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = {
    address:              'smtpgw1.he-arc.ch',
  }
davidkuehner commented 10 years ago

Deploy example with capistrano, smart secret token, and proxy fix