This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
web_page_editing [2015/11/24 19:32] fowlkes [Checking out the repo] |
web_page_editing [2016/11/27 16:29] (current) rdiazgar [Regenerate the static pages] |
||
---|---|---|---|
Line 39: | 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 66: | 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> | ||