Skip to content

tagSurf/dev-ops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Server setup

To rebuild the server:

  1. Run the scripts documented in server-config
  2. scp the 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
  1. Create a directory for the www.tagpitch.com web page:
mkdir /var/www/home

And then scp all home page files to the server and copy them to directory.

  1. 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: 3306

Make sure to replace the password. This file just needs to live in your home directory.

  1. 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.

  1. Restart Apache after any config/file changes
sudo /etc/init.d/apache2 restart

About

Dev ops scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors