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

AWS Lambdaify #2

Open
AnEmortalKid opened this issue Feb 6, 2019 · 1 comment
Open

AWS Lambdaify #2

AnEmortalKid opened this issue Feb 6, 2019 · 1 comment
Assignees

Comments

@AnEmortalKid
Copy link
Member

This currently lives in heroku, but I think we could make this function a lambda and have it in AWS or some openfaas system.

@AnEmortalKid AnEmortalKid changed the title Lambdaify AWS Lambdaify Feb 6, 2019
@AnEmortalKid
Copy link
Member Author

We do some funky stuff to load the latest version (look at dogescript:fetch), we could potentially require the dogescript lib as it were an npm package: https://medium.com/@jonchurch/use-github-branch-as-dependency-in-package-json-5eb609c81f1a

Might not need the hook if we wire things in lambda (https://chatbotslife.com/write-a-serverless-slack-chat-bot-using-aws-e2d2432c380e) so that the function gets re-created with a fresh instance that we can npm install on.

The current setup uses a deploy-bot.js script https://github.com/dogescript/dogescript/blob/master/deploy-bot.js#L7 that's wired to heroku, to re-start the web dyno. That dyno, on initialization does all the npm link / unlink stuff it needs + gathering of the hash.

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

No branches or pull requests

1 participant