Skip to content

Commit

Permalink
remove platform docs
Browse files Browse the repository at this point in the history
  • Loading branch information
austencollins committed Jan 16, 2019
1 parent 121a2ff commit 4aa14aa
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 117 deletions.
36 changes: 19 additions & 17 deletions bin/serverless
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,25 @@ const invocationId = uuid.v4();
return serverless.init()
.then(() => serverless.run())
.then(() => process.exit(0))
.catch((e) => {
if (serverless.service.deployment && serverless.service.deployment.deploymentId) {
const deploymentData = {
tenant: serverless.service.deployment.tenant,
app: serverless.service.deployment.app,
serviceName: serverless.service.deployment.serviceName,
deploymentId: serverless.service.deployment.deploymentId,
accessKey: serverless.service.deployment.accessKey,
};
deploymentData.status = 'Failed';
return platform.updateDeployment(deploymentData)
.then(() => {
throw e;
});
}
throw e;
});
.catch((err) => {
// If Enterprise Plugin, capture error
let enterpriseErrorHandler = null;
serverless.pluginManager.plugins.forEach((p) => {
if (p.enterprise && p.enterprise.errorHandler) {
enterpriseErrorHandler = p.enterprise.errorHandler;
}
});
if (!enterpriseErrorHandler) { throw err; }
return enterpriseErrorHandler(err, invocationId)
.catch((error) => {
// if (process.env.SLS_DEBUG) {
console.log(error)
// }
})
.then(() => {
throw err
});
})
}).catch(e => {
process.exitCode = 1;
logError(e);
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ title: Serverless Framework Documentation
menuText: Docs
layout: Doc
menuItems:
- {menuText: Getting Started, path: /framework/docs/getting-started/}
- {menuText: Providers, path: /framework/docs/providers}
- {menuText: "- AWS", path: /framework/docs/providers/aws/}
- {menuText: "- Azure", path: /framework/docs/providers/azure/}
Expand All @@ -13,6 +12,7 @@ menuItems:
- {menuText: "- Kubeless" , path: /framework/docs/providers/kubeless/}
- {menuText: "- Spotinst" , path: /framework/docs/providers/spotinst/}
- {menuText: "- Cloudflare" , path: /framework/docs/providers/cloudflare/}
- {menuText: Enterprise, path: https://www.github.com/serverless/enterprise}
-->

<!-- DOCS-SITE-LINK:START automatically generated -->
Expand Down
31 changes: 0 additions & 31 deletions docs/platform/README.md

This file was deleted.

20 changes: 0 additions & 20 deletions docs/platform/commands/README.md

This file was deleted.

26 changes: 0 additions & 26 deletions docs/platform/commands/login.md

This file was deleted.

22 changes: 0 additions & 22 deletions docs/platform/commands/logout.md

This file was deleted.

0 comments on commit 4aa14aa

Please sign in to comment.