User Tools

Site Tools


web_page_editing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
web_page_editing [2015/11/24 19:29]
fowlkes [Updating the live site]
web_page_editing [2016/11/27 16:29] (current)
rdiazgar [Regenerate the static pages]
Line 3: Line 3:
 ===== Checking out the repo ===== ===== Checking out the repo =====
  
-To get a copy of the repository, ​simply run the command:+To get a copy of the repository, ​clone the ucivision webpage repository from bitbucket:
  
 <​file>​ <​file>​
- svn co https://svn.ics.uci.edu/​titans/​visionweb/​+git clone git@bitbucket.org:ucivision/vision.ics.git
 </​file>​ </​file>​
- 
-You'll then be prompted for a password against your current username. If this is not the same as your ICS username, then simply push enter and you'll get a prompt for a username. Enter in your ICS username then password and you'll begin getting a copying the repo. 
  
 ===== Updating content ===== ===== Updating content =====
Line 41: Line 39:
  
 If you see errors when running the script, feel free to try to fix them yourself or bug Bailey. If you see errors when running the script, feel free to try to fix them yourself or bug Bailey.
 +
 +Make sure your version of lxml and pybtex are up to date using the python pip tool.
  
 ===== Commit your changes ===== ===== Commit your changes =====
  
-When you are satisfied that everything looks good, check your updates back in to svn. You should go back to the top folder "​public_html"​ to see all changes, then “svn add” any new files or directories you have added or changed ​to the tree.+When you are satisfied that everything looks good, commit ​your updates back in to git and push to the upstream origin.
  
 ===== Updating the live site ===== ===== Updating the live site =====
  
 The vision website is hosted on /​extra/​vision0 share which you can access on the titan cluster The vision website is hosted on /​extra/​vision0 share which you can access on the titan cluster
- 
-Finally, pull the updates from svn to the hosted directory. 
- 
-<​code>​ 
-gsu vision 
-cd /​extra/​vision0 
-svn export --force https://​svn.ics.uci.edu/​titans/​visionweb/​public_html/​ 
-find public_html/​ -type f -print -exec chmod a+r {} \; 
-find public_html/​ -type d -print -exec chmod a+rx {} \; 
-find public_html/​ -type f -print -name "​*.html"​ -exec chmod a+rx {} \; 
-chmod 644 public_html/​.htaccess 
-</​code>​ 
  
 Note: the .html files make use of server side includes. ​ The department file server requires use of the "​XBitHack"​ which only processes server-side includes for files that are executable, hence the last "​find"​ operation above. Note: the .html files make use of server side includes. ​ The department file server requires use of the "​XBitHack"​ which only processes server-side includes for files that are executable, hence the last "​find"​ operation above.
Line 68: Line 56:
 ---- ----
  
-Temporary new recipie+New recipie
  
 <​code>​ <​code>​
-# first checkout the latest version from git and modify file permissions +gsu vision 
-cd /extra/fowlkes0/vision.ics +cd /extra/vision0/vision.ics/
-git checkout .+
 git pull git pull
-find public_html/​ -type f -print -exec chmod a+r {} \; +cd /​extra/​vision0/​ 
-find public_html/​ -type d -print -exec chmod a+rx {} \; +rsync -rv /​extra/​vision0/​vision.ics/​public_html/ ​ /​extra/​vision0/​public_html/​ 
-find public_html/​ -type f -print -name "​*.html"​ -exec chmod a+rx {} \; +find /​extra/​vision0/​public_html/​ -type f -print -exec chmod a+r {} \; 
-chmod 644 public_html/​.htaccess +find /​extra/​vision0/​public_html/​ -type d -print -exec chmod a+rx {} \; 
- +find /​extra/​vision0/​public_html/​ -type f -print -name "​*.html"​ -exec chmod a+rx {} \; 
-# sync over into vision account +chmod 644 /​extra/​vision0/​public_html/​.htaccess 
-gsu vision +cd /​extra/​vision0/​vision.ics/​
-cd /​extra/​vision0 +
-rsync -av /​extra/​fowlkes0/vision.ics/​public_html/​ public_html/+
 </​code>​ </​code>​
  
web_page_editing.1448422169.txt.gz · Last modified: 2015/11/24 19:29 by fowlkes