Difference between revisions of "Updating the public website"

From Adobe Open Source Wiki
Jump to: navigation, search
m (script fix)
m
 
(One intermediate revision by one user not shown)
Line 2: Line 2:
 
Programs you will need (both from a command line):
 
Programs you will need (both from a command line):
 
* rsync (a *nix utility that comes with Mac OS X and can be installed for cygwin)
 
* rsync (a *nix utility that comes with Mac OS X and can be installed for cygwin)
* ssh (PuTTY for Win32 works fine)
+
* Browser (FireFox, IE, etc.)
  
 
==Directions==
 
==Directions==
 
# Build the doxygen documentation on your computer, making sure the warning file is empty at the end
 
# Build the doxygen documentation on your computer, making sure the warning file is empty at the end
# Open a command line terminal (all commands take place in the terminal)
+
# Open a command line terminal
 
# Assuming your ASL sources are stored at ~/opensource/, execute the following rsync command:
 
# Assuming your ASL sources are stored at ~/opensource/, execute the following rsync command:
#* <pre>rsync -az --progress ~/opensource/submission/adobe/documentation/html/ cmsprod.corp.adobe.com:/iwmnt/us/main/opensource/WORKAREA/default/ ; echo "rsync done."</pre>
+
#* <pre>rsync -az --progress --stats ~/opensource/submission/adobe/documentation/html/ webprod.macromedia.com:/data/www/sites/stlab-staging.adobe.com/htdocs ; echo "rsync done."</pre>
 
#* You may get some permission warnings for some directories like "." -- those are ok
 
#* You may get some permission warnings for some directories like "." -- those are ok
# When the rsync is complete, ssh to cmsprod.corp.adobe.com with your LDAP username and password
+
# When the rsync is complete, open your browser and head to
# ''One-time setup'': Create the "asl_deploy.sh" script in your home directory on cmsprod.corp.adobe.com (see script contents below) and run <code>chmod a+x asl_deploy.sh</code> so it can be executed. Make sure "USERNAME" in the script is replaced with your personal user name.
+
#* http://webpush.macromedia.com/stlab.adobe.com/
# Execute the "asl_deploy.sh" script. If you get any errors OTHER THAN notifications saying a file is the same/similar as one that already exists, the update will not complete.
+
#* Note that you may have to log in with you LDAP information
 +
# Once the page has loaded (it could take a while given the volume of pages in a directory) hit the "Check all push boxes" button at the top of the page.
 +
#* If you are uploading directories with content make sure the "Push all subdirectories of checked items" checkbox is checked as well.
 +
# Hit the "Push and/or Delete!" button
 
# After about 10-15 minutes you should see the public web site updated.
 
# After about 10-15 minutes you should see the public web site updated.
 
==asl_deploy.sh==
 
<pre>
 
#!/bin/bash
 
 
rm /user/USERNAME/dummy.txt
 
 
cd /iwmnt/us/main/opensource/WORKAREA/default
 
 
find . -print > /user/USERNAME/dummy.txt
 
 
chmod 644 /user/USERNAME/dummy.txt
 
 
/usr/iw-home/local/AdobeUtil/Deploy/content-deploy --target=P --deploy-ID=opensource --file-list=/user/USERNAME/dummy.txt
 
 
echo "done."
 
</pre>
 

Latest revision as of 20:24, 17 March 2008

Required Software

Programs you will need (both from a command line):

  • rsync (a *nix utility that comes with Mac OS X and can be installed for cygwin)
  • Browser (FireFox, IE, etc.)

Directions

  1. Build the doxygen documentation on your computer, making sure the warning file is empty at the end
  2. Open a command line terminal
  3. Assuming your ASL sources are stored at ~/opensource/, execute the following rsync command:
    • rsync -az --progress --stats ~/opensource/submission/adobe/documentation/html/ webprod.macromedia.com:/data/www/sites/stlab-staging.adobe.com/htdocs ; echo "rsync done."
    • You may get some permission warnings for some directories like "." -- those are ok
  4. When the rsync is complete, open your browser and head to
  5. Once the page has loaded (it could take a while given the volume of pages in a directory) hit the "Check all push boxes" button at the top of the page.
    • If you are uploading directories with content make sure the "Push all subdirectories of checked items" checkbox is checked as well.
  6. Hit the "Push and/or Delete!" button
  7. After about 10-15 minutes you should see the public web site updated.