• New Site Cheat Sheet

  last modified April 3 by ra

Concise set of steps for generating a brand new OpenPlans site deployment.

  1. make sure relevant DNS settings are correct, i.e. that the hostnames resolve.  for every FQDN (e.g. 'site.example.com')  you'll also want to specify a 'root' FQDN that will expose Zope directly (e.g. 'siteroot.example.com')
  2. become 'openplans' user on the machine in question
  3. examine /usr/local/topp/build-scripts/newsite.ini to make sure that the settings match what you want
  4. $ cd /usr/local/topp
  5. $ python ./build-scripts/newsite.py SITE_FQDN BASE_PORT
  6. $ cd /usr/local/topp/SITE_FQDN
  7. (possibly) svn copy an existing configuration set from a similarly configured host, hand tweak .ini and GS profile settings to get the right email_from_address, site title, etc.
  8. $ ./newbuild.sh REQ_SVN_DIR
  9. examine /usr/local/topp/SITE_FQDN/apache.conf to see if it looks as expected, then (if so) paste it's contents into the httpd.conf file and restart apache
  10. add appropriate rewrite rule to squid configuration in /etc/squid/squidRewriteRules.py and restart squid
Voila, that should do it.  Point a browser at FQDN and the site should work.