Web Site Developers Info
This file contains the following information for OpenSHA web site contributors and developers:
How to get access to OpenSHA website in Version Control System (VCS)
The following explains how to check-out new OpenSHA website from the "CVS" located on scec.usc.edu server.
Note : User must have a account on scec.usc.edu server, else this operation cannot be performed. For obtaining account on this server, contact us.
After launching the Adobe Golive application, choose "New ..." (under the "File" menu if you aren't automatically given this choice).
In the "New" window that is presented, select the "Site" option on the left column, "Connect to Site" from the middle column. Set the following options for the right window and then press "Next":
| Version Control System: | CVS |
| Server: | scec.usc.edu:/home/scec-00/cvs/repos/ |
| Project: | OpenSHA |
| Username: | your username on the server |
| Password: | your password on the server |
| Authoring Type: | extern |
Then in the right most column window can click on the "Browse" button to select a folder to download all OpenSHA web site files. Then click "Finish" to complete the operation.
In the future you can edit the web site by just clicking the "OpenSHA.site" file in the "OpenSHA" folder.
When the user tries to edit a webpage, which also exists in CVS, user is prompted if webpage needs to be "checked out" of the CVS, if it has not already been "checked out" by someone else. Only one person can work on a webpage at a time. Until that modified webpage is not "checked in" back to the CVS, another user won't be able to work on this webpage. If someone is working on a webpage, that user's name will appear on top of that webpage , along with the title of the webpage.
Once user is done making changes to the webpages, those must be commit back to the CVS , for others to have access to them. This can be done by using the following instructions:
We have a template we use for creating new pages (to maitain the look and feel).
From Adobe GoLive, you can access this Template from the "Extras" tab on the right side of the main window (it's in the "Templates" folder shown under the "Extras" tab).
To create a new page, simply drag the "OpenSHA_Template" to wherever you want it in the site on the left side of the main window, give it a new name, and edit away.
The webpages created using this template have marked areas that user cannot edit (seen in pink in layout mode). Once new webpages are created using the templates please commit those to the CVS before publishing to the web-server for other users to have access to them.
Setting up connection to published web-server in Adobe Golive
Select "Settings ..." from "Publish Server" in "Site" menu option.
You now need to fill in the following info about the server (click "OK" when done):
| NickName : | whatever you like (e.g., "OpenSHA_Website") |
| Protocol: | ftp (& Unselect "Use Proxy") |
| Server: | ehzweb-south.gps.caltech.edu |
| Directory: | /home/websites/opensha/ |
| Username: | your username on the Server |
| Password: | your password on the Server |
Now click the "Advanced..." button, and in the window titled "Advanced FTP Options" that pops up, set the following:
| Security: | SSH |
| Use Public Key Authentication: | check this box |
| Private Key: | id_rsa (may have to browse to find) |
| Password: | your password on the above Server |
| Use standard Framework: | check this box |
(contact us if you have problems with the above keys)
After clicking "OK" for the above settings to save the settings.
Adobe GoLive shows the contents of the web site on the user's local disk to the left side of the main window, and the web site contents on the server to the right (under "Publish Server").
If the right side only says " - disconnected - ", connect to the web site on the remote machine by selecting "Connect" under the "Publish Server" option of the "Site" menu. If you have problems connecting, make sure the "Settings" under the "Publish Server" option of the "Site" menu are all as given above.
To put your modifications or new pages on the server, select "Upload Modified Files ..." under the "Publish Server" option of the "Site" menu. Selecting "Show Folder Structure" before pressing "OK" button will show which files have been modified.
Choose "Download Newer Files..." under the "Publish Server" option of the "Site" menu to get newer files from the server onto your computer.
Once you are done updating the webpages to/from the server , you disconnect the connection to the publish server by choosing "Disconnect under the "Publish Server" option of the "Site" menu.