From 4fbeef185b4b7a441dbd297d38b10b4ebb4b77a8 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Tue, 25 Feb 2014 11:24:47 -0500 Subject: [PATCH 1/2] Added Windows Azure deployment instructions --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index be6f63d297..19108f426e 100644 --- a/README.md +++ b/README.md @@ -977,7 +977,20 @@ Add this to `package.json`, after *name* and *version*. This is necessary becaus -TODO: Will be added soon. +- Login to [Windows Azure Management Portal](http://manage.windowsazure.com/) +- Click the **+ NEW** button on the bottom left of the portal +- Click **WEB SITE**, then **QUICK CREATE** +- Enter a name for **URL** and select the datacenter **REGION** for your web site +- Click on **CREATE WEB SITE** button +- Once the web site status changes to *Running*, click on the name of the web site to access the Dashboard +- At the bottom right of the Quickstart page, select **Set up a deployment from source control** +- Select **Local Git repository** from the list, and then click the arrow +- To enable Git publishing, Azure will ask you to create a user name and password +- Once the Git repository is ready, you will be presented with a **GIT URL** +- Inside your *Hackathon Starter* directory, run `git remote add azure [Azure Git URL]` +- To push your changes simply run `git push azure master` + - **Note:** *You will be prompted for the password you created earlier* +- On **Deployments** tab of your Windows Azure Web Site, you will see the deployment history TODO ---- From e08830df35f43e4713ac68fae3ab76a72f530758 Mon Sep 17 00:00:00 2001 From: Amit K Date: Wed, 26 Feb 2014 05:26:59 +0530 Subject: [PATCH 2/2] hack to exclude internal links from the list --- controllers/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/api.js b/controllers/api.js index 87bdf7209e..99a63fdddb 100644 --- a/controllers/api.js +++ b/controllers/api.js @@ -123,7 +123,7 @@ exports.getScraping = function(req, res, next) { if (err) return next(err); var $ = cheerio.load(body); var links = []; - $('.title a').each(function() { + $(".title a[href^='http'], a[href^='https']").each(function() { links.push($(this)); }); res.render('api/scraping', {