Sha256: 0926d3c5be9f6329b66c1d45ea32fe6a03e2d70c627220ed4a748d14184f4b30

Contents?: true

Size: 956 Bytes

Versions: 33

Compression:

Stored size: 956 Bytes

Contents

#!/usr/bin/env bash
set -e

echo '== Simulate SAM Build Directory =='
RESOURCE="RailsLambda"
SAM_TEMP=$(mktemp -d -t sam.XXXXXX)
rm -rf ./.lamby ./.aws-sam
cp -r . "$SAM_TEMP"
mkdir -p ./.lamby
cp -r "$SAM_TEMP" "./.lamby/$RESOURCE"
pushd "./.lamby/$RESOURCE"

echo '== Cleaning Dev Dependencies =='
rm -rf ./.bundle \
       ./vendor/bundle

echo '== Bundle For Deployment =='
bundle config --local deployment true
bundle config --local without 'development test'
bundle config --local path './vendor/bundle'
bundle install --quiet --jobs 4

echo "== Environments & Configuration =="
# ./bin/rails \
#   -rlamby \
#   lamby:ssm:dotenv \
#   LAMBY_SSM_PARAMS_PATH="/APPNAMEHERE/${RAILS_ENV}/env"

echo "== Asset Hosts & Precompiling =="
# NODE_ENV='production' \
#   RAILS_GROUPS=assets \
#   ./bin/rails assets:precompile

echo "== Cleanup Unused Files & Directories =="
rm -rf \
  log \
  node_modules \
  test \
  tmp \
  vendor/bundle/ruby/2.7.0/cache

Version data entries

33 entries across 11 versions & 1 rubygems

Version Path
lamby-2.8.0 lib/lamby/templates/rest/_build
lamby-2.8.0 lib/lamby/templates/http/_build
lamby-2.8.0 lib/lamby/templates/alb/_build
lamby-2.7.1 lib/lamby/templates/alb/_build
lamby-2.7.1 lib/lamby/templates/rest/_build
lamby-2.7.1 lib/lamby/templates/http/_build
lamby-2.7.0 lib/lamby/templates/rest/_build
lamby-2.7.0 lib/lamby/templates/http/_build
lamby-2.7.0 lib/lamby/templates/alb/_build
lamby-2.6.3 lib/lamby/templates/rest/_build
lamby-2.6.3 lib/lamby/templates/http/_build
lamby-2.6.3 lib/lamby/templates/alb/_build
lamby-2.6.2 lib/lamby/templates/http/_build
lamby-2.6.2 lib/lamby/templates/alb/_build
lamby-2.6.2 lib/lamby/templates/rest/_build
lamby-2.6.1 lib/lamby/templates/http/_build
lamby-2.6.1 lib/lamby/templates/alb/_build
lamby-2.6.1 lib/lamby/templates/rest/_build
lamby-2.6.0 lib/lamby/templates/rest/_build
lamby-2.6.0 lib/lamby/templates/http/_build