Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Upload docs to new npm site as well as old

  • Loading branch information...
commit 4bf6ef40e495cc23752f593951946dc700a8b01f 1 parent 4007638
@isaacs isaacs authored
Showing with 27 additions and 5 deletions.
  1. +26 −4 Makefile
  2. +1 −1  html/dochead.html
View
30 Makefile
@@ -113,10 +113,32 @@ publish: link doc
docpublish: doc-publish
doc-publish: doc
- rsync -vazu --stats --no-implied-dirs --delete html/doc/ npmjs.org:/var/www/npmjs.org/public/doc
- rsync -vazu --stats --no-implied-dirs --delete html/api/ npmjs.org:/var/www/npmjs.org/public/api
- rsync -vazu --stats --no-implied-dirs --delete html/webfonts/ npmjs.org:/var/www/npmjs.org/public/webfonts
- scp html/style.css npmjs.org:/var/www/npmjs.org/public/
+ # old site
+ rsync -vazu --stats --no-implied-dirs --delete \
+ html/doc/ \
+ 173.203.97.118:/var/www/npmjs.org/public/doc
+ rsync -vazu --stats --no-implied-dirs --delete \
+ html/api/ \
+ 173.203.97.118:/var/www/npmjs.org/public/api
+ rsync -vazu --stats --no-implied-dirs --delete \
+ html/webfonts/ \
+ 173.203.97.118:/var/www/npmjs.org/public/static/webfonts
+ rsync -vazu --stats --no-implied-dirs --delete \
+ html/style.css \
+ 173.203.97.118:/var/www/npmjs.org/public/static/
+ #new site
+ rsync -vazu --stats --no-implied-dirs --delete \
+ html/doc/ \
+ node@new.npmjs.org:/home/node/npm-www/doc
+ rsync -vazu --stats --no-implied-dirs --delete \
+ html/api/ \
+ node@new.npmjs.org:/home/node/npm-www/api
+ rsync -vazu --stats --no-implied-dirs --delete \
+ html/webfonts/ \
+ node@new.npmjs.org:/home/node/npm-www/static/webfonts
+ rsync -vazu --stats --no-implied-dirs --delete \
+ html/style.css \
+ node@new.npmjs.org:/home/node/npm-www/static/
zip-publish: release
scp release/* npmjs.org:/var/www/npmjs.org/public/dist/
View
2  html/dochead.html
@@ -2,7 +2,7 @@
<html>
<title>@NAME@</title>
<meta http-equiv="content-type" value="text/html;utf-8">
- <link rel="stylesheet" type="text/css" href="../style.css">
+ <link rel="stylesheet" type="text/css" href="../static/style.css">
<body>
<div id="wrapper">
Please sign in to comment.
Something went wrong with that request. Please try again.