Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sashkachan/github-hugo-lambda
Github hosted Hugo site deployment on S3/Cloudfront with AWS Lambda
https://github.com/sashkachan/github-hugo-lambda
Last synced: about 2 months ago
JSON representation
Github hosted Hugo site deployment on S3/Cloudfront with AWS Lambda
- Host: GitHub
- URL: https://github.com/sashkachan/github-hugo-lambda
- Owner: sashkachan
- Created: 2016-02-20T11:23:32.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-19T10:57:56.000Z (almost 8 years ago)
- Last Synced: 2023-11-19T13:41:39.752Z (about 1 year ago)
- Language: JavaScript
- Size: 4.27 MB
- Stars: 6
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Github Hugo Lambda deployment
Lambda AWS <> Hugo ProjectThis project is created to streamline and automate pushing Hugo websites to AWS s3
# Rationale
Assuming, you setup the workflow as described here: http://bezdelev.com/post/hugo-aws-lambda-static-website/
To update your project, you have to update input. bucket.The approach is great, but I found that pulling the project off github and running Hugo on Lambda would be more efficient.
# Prerequisites
- p7zip
- npm
- gnu makeThis project includes:
- RunHugo.js - modified version of the RunHugo.js included in the post.
- Makefile - make commands for initializing nodejs dependencies, updating lambda code, building the project
- sample.config.{mk,json} - sample config files
- hugo - hugo binary (FIXME: pull the latest version off Hugo project)
# Install
1. ```git clone https://github.com/alex-glv/lahg```
2. Edit sample config files and rename to config.{json,mk}
3. ```make initnodedeps && make build && make deploy``` This will update provision nodejs dependencies, build the zip file and deploy to AWS Lambda