Skip to content

ReasonVienna/serverless-reason-plugin

Repository files navigation

Serverless & ReasonML

Install

Make sure you have Docker up and running.

# Make sure docker-machine is up
docker-machine start <name of your machine>
eval $(docker-machine env <name of your machine>)

# Before running, build your docker container
docker build . -t serverless:reasonml

Run the following script to install the build environment inside docker:

./install

Build the container manually:

# Use this script to automatically run the built container
./run.sh

Adding a Function

  1. Create a ReasonML file with a name of your choice e.g. myCustomFunction.re
  2. Add your function to serverless.yml e.g.
functions:
  myFunction:
    handler: myCustomFunction
    compileReason: native

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published