Difference between revisions of "Quick site setup"

From GLMWiki
Jump to: navigation, search
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
'''Setup the file server first'''
 
'''Setup the file server first'''
 +
 +
MUST BE GOING TO ws3 or ws0 ONLY!!!!!!
  
 
On dev52 from a terminal window:
 
On dev52 from a terminal window:
  
;Change to the server directory
+
;Use your home directory on dev52 or dev53
: cd /var/www/server
+
: cd ~/www
 
;Export the quicksite base files into your new site
 
;Export the quicksite base files into your new site
 
: svn export <nowiki>http://cvs2/svn/dev/www.quicksite.com</nowiki> www.newsite.com
 
: svn export <nowiki>http://cvs2/svn/dev/www.quicksite.com</nowiki> www.newsite.com
Line 24: Line 26:
 
## www.greensideup.com => greensideup
 
## www.greensideup.com => greensideup
 
## www.wmta.org => wmta
 
## www.wmta.org => wmta
 +
  
 
== Deploy on web server ==
 
== Deploy on web server ==
Line 31: Line 34:
  
 
Import site into SVN/prod (svn import -m "new QuickSite" [PATH] URL)
 
Import site into SVN/prod (svn import -m "new QuickSite" [PATH] URL)
 +
 +
svn import -m "new QuickSite" www.newsite.com <nowiki>http://cvs2/svn/prod/www.newsite.com</nowiki>
 +
 +
  
 
Checkout site on production server.
 
Checkout site on production server.
Line 49: Line 56:
  
 
Test by adding pages paragraphs and images.
 
Test by adding pages paragraphs and images.
 
  
 
==Troubleshooting==
 
==Troubleshooting==
 
If you start getting PDOException error messages when attempting to, e.g., add a new page, or edit one, through the toolbox, make sure you have postgresql 8.4 installed and that /usr/share/postgresql/8.4/contrib/tablefunc.sql exists. It does not in 9.1, and build.xml will skip the  
 
If you start getting PDOException error messages when attempting to, e.g., add a new page, or edit one, through the toolbox, make sure you have postgresql 8.4 installed and that /usr/share/postgresql/8.4/contrib/tablefunc.sql exists. It does not in 9.1, and build.xml will skip the  
"psql -U postgres -f /usr/share/postgresql/8.4/contrib.tablefunc.sql -h ds4 whateversitename" command
+
"psql -U postgres -f /usr/share/postgresql/8.4/contrib.tablefunc.sql -h ds4 whatevertablename" command

Latest revision as of 14:04, 26 March 2013

Setup the file server first

MUST BE GOING TO ws3 or ws0 ONLY!!!!!!

On dev52 from a terminal window:

Use your home directory on dev52 or dev53
cd ~/www
Export the quicksite base files into your new site
svn export http://cvs2/svn/dev/www.quicksite.com www.newsite.com
Change into your new site
cd www.newsite.com
run "phing" which will ask you questions and guide you through site setup
phing setup


  1. Most questions will contain a default answer that can be inserted by pressing Enter / Return without typing any characters
  2. Y / N questions must be answered with either a capital Y or capital N
  3. New File server accounts can be setup on the File Server here
    1. Be sure to fill in all necessary fields
      1. Owner Name
      2. Owner Id
      3. Owner Access Password - Strong Password Generator Remember to UNCHECK use of special characters
      4. You must set up an account with the same credentials that you used when setting up the quicksite
  4. database names are usually simplified versions of urls ie:
    1. www.greensideup.com => greensideup
    2. www.wmta.org => wmta


Deploy on web server

Grep new site for dev52 references.

Verify PRODUCTION email addresses

Import site into SVN/prod (svn import -m "new QuickSite" [PATH] URL)

svn import -m "new QuickSite" www.newsite.com http://cvs2/svn/prod/www.newsite.com


Checkout site on production server.

  When you checkout the site to the live server first check it out as a different folder name
  svn co http://cvs2.gaslightmedia.com/svn/prod/www.sitename.com new.sitename.com
  then move in the needed folders like admin/logs and move the original out of the way to the 
  backup directory and move in your new copy.

Update .htaccess. (Comment RewriteBase)

Create admin directory

Create cache directory

Copy logs directory from virtual server to new site/admin

Create new .htaccess file in admin with RewriteEngine Off

Test by adding pages paragraphs and images.

Troubleshooting

If you start getting PDOException error messages when attempting to, e.g., add a new page, or edit one, through the toolbox, make sure you have postgresql 8.4 installed and that /usr/share/postgresql/8.4/contrib/tablefunc.sql exists. It does not in 9.1, and build.xml will skip the "psql -U postgres -f /usr/share/postgresql/8.4/contrib.tablefunc.sql -h ds4 whatevertablename" command