GithubHelp home page GithubHelp logo

isabella232 / github-hugo-lambda Goto Github PK

View Code? Open in Web Editor NEW

This project forked from containersolutions/github-hugo-lambda

0.0 0.0 0.0 4.37 MB

Github hosted Hugo site deployment on S3/Cloudfront with AWS Lambda

Makefile 19.18% JavaScript 80.82%

github-hugo-lambda's Introduction

Github Hugo Lambda deployment

Lambda AWS <> Hugo Project

This 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 make

This 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

github-hugo-lambda's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.