To rebuild the server:
- Run the scripts documented in server-config
scpthe pitch-home.conf and pitch-web.conf files to the home folder of the ubuntu user. Then move the files into the proper apache folder:
scp pitch-web.conf pitch-home.conf pitch-web:~/
ssh pitch-web
#on the server
sudo cp ~/*.conf /etc/apache2/sites-enabled- Create a directory for the www.tagpitch.com web page:
mkdir /var/www/homeAnd then scp all home page files to the server and copy them to directory.
- Upload the production database settings in a file called database.yml. The format for this file is:
production:
adapter: mysql2
encoding: utf8
database: deck
username: root
password: PASSWORD
host: deck-production.cfmjmatrvdif.us-west-2.rds.amazonaws.com
port: 3306Make sure to replace the password. This file just needs to live in your home directory.
- Add environment variables for Gmail SMTP proxy, in /etc/apache2/envvars
export GMAIL_USERNAME="no-reply@tagpitch.com"
export GMAIL_PASSWORD="the password for this account"Make sure you replace the password.
- Restart Apache after any config/file changes
sudo /etc/init.d/apache2 restart