Skip to content
Permalink
Browse files

Redirect to GitHub source

  • Loading branch information
ithinkihaveacat committed Feb 5, 2020
1 parent c756e2e commit 5cd1e55d6477b2d1a1a9751620bdf84f4ed9c0d1
Showing with 26 additions and 4 deletions.
  1. +9 −3 README.md
  2. +1 −1 package.json
  3. +16 −0 redirect-all.js
@@ -2,9 +2,15 @@

## AMPBench: AMP URL Validation and Troubleshooting

IMPORTANT: The hosted version of ampbench at <https://ampbench.appspot.com/>
will be shut down on January 31st, 2020. For more information, please see [issue
#126](https://github.com/ampproject/ampbench/issues/126).
### Status

The hosted version of ampbench was shut down in February 2020. For the rationale
and alternatives, see [issue
\#126](https://github.com/ampproject/ampbench/issues/126).

There are no plans to remove the source code from its canonical location at
<https://github.com/ampproject/ampbench,> but if it is important to you, we
recommend making a copy.

### Guides

@@ -6,7 +6,7 @@
"private": true,
"scripts": {
"preinstall": "cd amp-story/linter && npm install",
"start": "node ampbench_main.js",
"start": "node redirect-all.js",
"monitor": "nodemon --watch . --watch views/index.hbs --watch views/results.hbs --ignore 'validator/*.*'",
"deploy": "gcloud app deploy app.yaml",
"lint": "eslint --quiet amp*.js",
@@ -0,0 +1,16 @@
"use strict";

const http = require("http");

const PORT = process.env.PORT || 8080;

const server = http.createServer((req, res) => {
res.statusCode = 301;
res.setHeader('Location', 'https://github.com/ampproject/ampbench#status');
res.setHeader('Content-type', 'text/plain');
res.end('See https://github.com/ampproject/ampbench#status');
});

server.listen(PORT, () => {
console.log(`App listening on port ${PORT}`);
});

0 comments on commit 5cd1e55

Please sign in to comment.
You can’t perform that action at this time.