AWS Amplify
to run in your site's root directory
View template source
create_file "amplify.yml", <<~YAML
version: 1
frontend:
phases:
preBuild:
commands:
- bundle install
build:
commands:
- RAILS_ENV=production bin/rails perron:build
artifacts:
baseDirectory: output
files:
- '**/*'
cache:
paths:
- vendor/bundle/**/*
YAML
This snippet adds a configuration file for AWS Amplify deployments. The amplify.yml file defines build phases, output directory and cache paths for your static site. Environment variables are typically configured in the Amplify console.