Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Bin Scripts - Setup, Build, Server, & Deploy #17
Below is a list of bin scripts we recommend creating for your AWS SAM & Rails projects. Each section contains a short description on what the script does. Remember, think of these scripts as starting points! You should add to or adjust each to meet your needs while following Strap and Scripts to Rule Them All conventions.
All of these are simple Bash scripts so please make sure to
This makes use of the sam build command along with the
#!/bin/bash set -e # Clean any previous bundle/builds. rm -rf ./.bundle \ ./vendor/bundle \ ./.aws-sam/build # Ensure native extensions built for platform. sam build --use-container # [HOOK] Environments & Configuration # https://github.com/customink/lamby/issues/28 # [HOOK] Asset Hosts & Precompiling # https://github.com/customink/lamby/issues/29 # Clean un-needed artifacts. pushd ./.aws-sam/build/RailsFunction/ rm -rf .aws-sam \ .git \ log \ test \ tmp popd