This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
web_page_editing [2014/10/02 00:04] 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 ===== | ||
- | Finally, pull the updates from svn to the hosted directory. | + | The vision website is hosted on /extra/vision0 share which you can access on the titan cluster |
+ | |||
+ | 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. | ||
+ | |||
+ | This final step will eventually be automated but for now just email Charless :) | ||
+ | |||
+ | ---- | ||
+ | |||
+ | New recipie | ||
<code> | <code> | ||
gsu vision | gsu vision | ||
- | cd /extra/vision0 | + | cd /extra/vision0/vision.ics/ |
- | svn export --force https://svn.ics.uci.edu/titans/visionweb/public_html/ | + | 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 {} \; | ||
+ | chmod 644 /extra/vision0/public_html/.htaccess | ||
+ | cd /extra/vision0/vision.ics/ | ||
</code> | </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. | ||
- | |||
- | The final step will eventually be automated but for now just email Charless :) | ||