Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serverless empathy fixes #441

Merged
merged 10 commits into from
Feb 11, 2021
Merged

Serverless empathy fixes #441

merged 10 commits into from
Feb 11, 2021

Conversation

miketalley
Copy link
Contributor

@miketalley miketalley commented Feb 4, 2021

Description and Context

This fixes several issues that were found during the empathy session on 2/3

Local Serverless Testing

  • Rename hs functions test to hs functions server @abelb
  • Additional logging when dependencies are being installed @phalaphone
  • Errors during spawned npm install process will be logged and interrupt the process @brandenrodgers
  • Status will only be set on res If a statusCode is provided
  • Fixed error when testing locally with no .env file, but having specified secrets in serverless.json

Serverless Deploy

@miketalley miketalley marked this pull request as ready for review February 9, 2021 21:40
@@ -5,7 +5,7 @@ const {
} = require('../lib/commonOpts');
const list = require('./functions/list');
const deploy = require('./functions/deploy');
const test = require('./functions/test');
const server = require('./functions/server');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for this change; it's much more intuitive.

Copy link
Contributor

@kemmerle kemmerle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miketalley, these changes make sense to me. I think that they make the experience spinning up a server much more developer-friendly--I appreciate that we've added more logging when installing dependencies and that we've streamlined our error handling.

Copy link
Contributor

@anthmatic anthmatic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good. Also tested and seems to work as expected.

@miketalley miketalley merged commit e6503dc into master Feb 11, 2021
@miketalley miketalley deleted the serverless/empathy-fixes branch February 11, 2021 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants